Class GlazedListsRowInsertCommandHandler<T>
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.extension.glazedlists.data.command.GlazedListsRowInsertCommandHandler<T>
-
- Type Parameters:
T
- The type contained in the backing data list.
- All Implemented Interfaces:
ILayerCommandHandler<RowInsertCommand>
public class GlazedListsRowInsertCommandHandler<T> extends Object implements ILayerCommandHandler<RowInsertCommand>
Default command handler for theRowInsertCommand
. Operates on aList
to add row objects by index. Therefore this command handler should be registered on the body DataLayer.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description GlazedListsRowInsertCommandHandler(ca.odell.glazedlists.EventList<T> bodyData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer targetLayer, RowInsertCommand command)
Class<RowInsertCommand>
getCommandClass()
-
-
-
Field Detail
-
bodyData
protected ca.odell.glazedlists.EventList<T> bodyData
-
-
Constructor Detail
-
GlazedListsRowInsertCommandHandler
public GlazedListsRowInsertCommandHandler(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, RowInsertCommand 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<RowInsertCommand> getCommandClass()
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<T>
-
-