Class RowInsertCommand<T>
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
-
- org.eclipse.nebula.widgets.nattable.data.command.RowInsertCommand<T>
-
- All Implemented Interfaces:
ILayerCommand
public class RowInsertCommand<T> extends AbstractContextFreeCommand
Command to insert rows.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description RowInsertCommand(int rowIndex, List<T> objects)
Create a command to add object(s).RowInsertCommand(int rowIndex, T object)
Create a command to add an object.RowInsertCommand(List<T> objects)
Create a command to add object(s).RowInsertCommand(ILayer layer, int rowPosition, List<T> objects)
Create a command to insert object(s) at the specified row position.RowInsertCommand(ILayer layer, int rowPosition, T... objects)
Create a command to insert object(s) at the specified row position.RowInsertCommand(T object)
Create a command to add an object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>
getObjects()
int
getRowIndex()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
-
-
-
-
Constructor Detail
-
RowInsertCommand
@SafeVarargs public RowInsertCommand(ILayer layer, int rowPosition, T... objects)
Create a command to insert object(s) at the specified row position. The row index will be calculated from the given layer and the corresponding row position.- Parameters:
layer
- The layer to which the row position matches.rowPosition
- The row position to insert the object(s).objects
- The object(s) to add.
-
RowInsertCommand
public RowInsertCommand(ILayer layer, int rowPosition, List<T> objects)
Create a command to insert object(s) at the specified row position. row index will be calculated from the given layer and the corresponding row position.- Parameters:
layer
- The layer to which the row position matches.rowPosition
- The row position to insert the object(s).objects
- The object(s) to add.
-
RowInsertCommand
public RowInsertCommand(int rowIndex, T object)
Create a command to add an object.- Parameters:
rowIndex
- The index at which the row should be inserted.object
- The object to add.
-
RowInsertCommand
public RowInsertCommand(int rowIndex, List<T> objects)
Create a command to add object(s).- Parameters:
rowIndex
- The index at which the rows should be inserted.objects
- The object(s) to add.
-
RowInsertCommand
public RowInsertCommand(T object)
Create a command to add an object.- Parameters:
object
- The object to add.
-
-