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 DeleteSelectionCommands.
Sets the values of the current selected cells to null.- Since:
- 1.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteSelectionCommandHandler(SelectionLayer selectionLayer) Creates a newDeleteSelectionCommandHandler.DeleteSelectionCommandHandler(SelectionLayer selectionLayer, IUniqueIndexLayer upperLayer) Creates a newDeleteSelectionCommandHandlerthat performs the edit checks based on the given upper layer. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoCommand(ILayer layer, DeleteSelectionCommand command)
-
Constructor Details
-
DeleteSelectionCommandHandler
Creates a newDeleteSelectionCommandHandler.- Parameters:
selectionLayer- TheSelectionLayerneeded to determine the current selected cells.
-
DeleteSelectionCommandHandler
Creates a newDeleteSelectionCommandHandlerthat 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- TheSelectionLayerneeded to determine the current selected cells.upperLayer- The layer on top of the givenSelectionLayerto which the selection should be converted to. Can benullwhich causes the resulting selected cells to be related to theSelectionLayer.- Since:
- 1.6
-
-
Method Details
-
doCommand
- Specified by:
doCommandin interfaceILayerCommandHandler<DeleteSelectionCommand>- Parameters:
layer- the target layercommand- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
- Specified by:
getCommandClassin interfaceILayerCommandHandler<DeleteSelectionCommand>
-