Class GlazedListsRowDeleteCommandHandler<T>
java.lang.Object
org.eclipse.nebula.widgets.nattable.extension.glazedlists.data.command.GlazedListsRowDeleteCommandHandler<T>
- Type Parameters:
T- The type contained in the backing data list.
- All Implemented Interfaces:
ILayerCommandHandler<RowDeleteCommand>
public class GlazedListsRowDeleteCommandHandler<T>
extends Object
implements ILayerCommandHandler<RowDeleteCommand>
Default command handler for the
RowDeleteCommand. Operates on a
List 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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGlazedListsRowDeleteCommandHandler(ca.odell.glazedlists.EventList<T> bodyData) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoCommand(ILayer targetLayer, RowDeleteCommand command)
-
Field Details
-
bodyData
-
-
Constructor Details
-
GlazedListsRowDeleteCommandHandler
- 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 Details
-
doCommand
- Specified by:
doCommandin interfaceILayerCommandHandler<T>- Parameters:
targetLayer- the target layercommand- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
- Specified by:
getCommandClassin interfaceILayerCommandHandler<T>
-