public class DeleteSelectionCommandHandler extends Object implements ILayerCommandHandler<DeleteSelectionCommand>
ILayerCommandHandler for handling DeleteSelectionCommands.
Sets the values of the current selected cells to null.DeleteSelectionCommand| Constructor and Description |
|---|
DeleteSelectionCommandHandler(SelectionLayer selectionLayer)
Creates a new
DeleteSelectionCommandHandler. |
DeleteSelectionCommandHandler(SelectionLayer selectionLayer,
IUniqueIndexLayer upperLayer)
Creates a new
DeleteSelectionCommandHandler that performs the
edit checks based on the given upper layer. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doCommand(ILayer layer,
DeleteSelectionCommand command) |
Class<DeleteSelectionCommand> |
getCommandClass() |
public DeleteSelectionCommandHandler(SelectionLayer selectionLayer)
DeleteSelectionCommandHandler.selectionLayer - The SelectionLayer needed to determine the current
selected cells.public DeleteSelectionCommandHandler(SelectionLayer selectionLayer, IUniqueIndexLayer upperLayer)
DeleteSelectionCommandHandler 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.selectionLayer - The SelectionLayer needed to determine the current
selected cells.upperLayer - The layer on top of the given SelectionLayer to which
the selection should be converted to. Can be null
which causes the resulting selected cells to be related to the
SelectionLayer.public boolean doCommand(ILayer layer, DeleteSelectionCommand command)
doCommand in interface ILayerCommandHandler<DeleteSelectionCommand>layer - the target layercommand - the commandpublic Class<DeleteSelectionCommand> getCommandClass()
getCommandClass in interface ILayerCommandHandler<DeleteSelectionCommand>Copyright © 2019. All rights reserved.