Class RowDeleteCommandHandler<T>
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.data.command.RowDeleteCommandHandler<T>
-
- Type Parameters:
T
- The type contained in the backing data list.
- All Implemented Interfaces:
ILayerCommandHandler<RowDeleteCommand>
public class RowDeleteCommandHandler<T> extends Object implements ILayerCommandHandler<RowDeleteCommand>
Default command handler for theRowDeleteCommand
. Operates on aList
to remove row objects by index. Therefore this command handler should be registered on the body DataLayer.This command handler fires a
RowObjectDeleteEvent
on completion that also carries the deleted object.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description RowDeleteCommandHandler(List<T> bodyData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer targetLayer, RowDeleteCommand command)
Class<RowDeleteCommand>
getCommandClass()
-
-
-
Method Detail
-
doCommand
public boolean doCommand(ILayer targetLayer, RowDeleteCommand command)
- Specified by:
doCommand
in interfaceILayerCommandHandler<T>
- Parameters:
targetLayer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
public Class<RowDeleteCommand> getCommandClass()
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<T>
-
-