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 handling DeleteSelectionCommand
s.
Sets the values of the current selected cells to null
.- Since:
- 1.4
- See Also:
-
Constructor Summary
ConstructorDescriptionDeleteSelectionCommandHandler
(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
Modifier and TypeMethodDescriptionboolean
doCommand
(ILayer layer, DeleteSelectionCommand command)
-
Constructor Details
-
DeleteSelectionCommandHandler
Creates a newDeleteSelectionCommandHandler
.- Parameters:
selectionLayer
- TheSelectionLayer
needed to determine the current selected cells.
-
DeleteSelectionCommandHandler
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 Details
-
doCommand
- Specified by:
doCommand
in interfaceILayerCommandHandler<DeleteSelectionCommand>
- Parameters:
layer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<DeleteSelectionCommand>
-