Class GlazedListsRowObjectDeleteCommandHandler<T>
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.extension.glazedlists.data.command.GlazedListsRowObjectDeleteCommandHandler<T>
-
- Type Parameters:
T
- The type contained in the backing data list.
- All Implemented Interfaces:
ILayerCommandHandler<RowObjectDeleteCommand>
public class GlazedListsRowObjectDeleteCommandHandler<T> extends Object implements ILayerCommandHandler<RowObjectDeleteCommand>
Default command handler for theRowObjectDeleteCommand
. Operates on aList
to remove row objects. Therefore this command handler should be registered on the body DataLayer.This command handler fires a
RowObjectDeleteEvent
on completion that carries the deleted object and the index it was stored before to be able to revert the change correctly.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description GlazedListsRowObjectDeleteCommandHandler(ca.odell.glazedlists.EventList<T> bodyData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer targetLayer, RowObjectDeleteCommand command)
Class<RowObjectDeleteCommand>
getCommandClass()
-
-
-
Field Detail
-
bodyData
protected ca.odell.glazedlists.EventList<T> bodyData
-
-
Constructor Detail
-
GlazedListsRowObjectDeleteCommandHandler
public GlazedListsRowObjectDeleteCommandHandler(ca.odell.glazedlists.EventList<T> bodyData)
- Parameters:
bodyData
- The backing data list on which the delete operation should be performed. Should be the same list that is used by the data provider.
-
-
Method Detail
-
doCommand
public boolean doCommand(ILayer targetLayer, RowObjectDeleteCommand 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<RowObjectDeleteCommand> getCommandClass()
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<T>
-
-