Class DeleteSelectionCommandHandler
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.edit.command.DeleteSelectionCommandHandler
-
- All Implemented Interfaces:
ILayerCommandHandler<DeleteSelectionCommand>
public class DeleteSelectionCommandHandler extends Object implements ILayerCommandHandler<DeleteSelectionCommand>
ILayerCommandHandler
for handlingDeleteSelectionCommand
s. Sets the values of the current selected cells tonull
.- Since:
- 1.4
- See Also:
DeleteSelectionCommand
-
-
Constructor Summary
Constructors Constructor Description DeleteSelectionCommandHandler(SelectionLayer selectionLayer)
Creates a newDeleteSelectionCommandHandler
.DeleteSelectionCommandHandler(SelectionLayer selectionLayer, IUniqueIndexLayer upperLayer)
Creates a newDeleteSelectionCommandHandler
that performs the edit checks based on the given upper layer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer layer, DeleteSelectionCommand command)
Class<DeleteSelectionCommand>
getCommandClass()
-
-
-
Constructor Detail
-
DeleteSelectionCommandHandler
public DeleteSelectionCommandHandler(SelectionLayer selectionLayer)
Creates a newDeleteSelectionCommandHandler
.- Parameters:
selectionLayer
- TheSelectionLayer
needed to determine the current selected cells.
-
DeleteSelectionCommandHandler
public DeleteSelectionCommandHandler(SelectionLayer selectionLayer, IUniqueIndexLayer upperLayer)
Creates a newDeleteSelectionCommandHandler
that performs the edit checks based on the given upper layer. Needed for example if the upper layer adds information that is needed for checks, e.g. a tree layer.- Parameters:
selectionLayer
- TheSelectionLayer
needed to determine the current selected cells.upperLayer
- The layer on top of the givenSelectionLayer
to which the selection should be converted to. Can benull
which causes the resulting selected cells to be related to theSelectionLayer
.- Since:
- 1.6
-
-
Method Detail
-
doCommand
public boolean doCommand(ILayer layer, DeleteSelectionCommand command)
- Specified by:
doCommand
in interfaceILayerCommandHandler<DeleteSelectionCommand>
- Parameters:
layer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
public Class<DeleteSelectionCommand> getCommandClass()
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<DeleteSelectionCommand>
-
-