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
Command to insert rows.
- Since:
- 1.6
-
Constructor Summary
ConstructorDescriptionRowInsertCommand
(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
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
-
Constructor Details
-
RowInsertCommand
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
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
Create a command to add an object.- Parameters:
rowIndex
- The index at which the row should be inserted.object
- The object to add.
-
RowInsertCommand
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
Create a command to add an object.- Parameters:
object
- The object to add.
-
RowInsertCommand
Create a command to add object(s).- Parameters:
objects
- The object(s) to add.
-
-
Method Details
-
getRowIndex
public int getRowIndex()- Returns:
- The index at which the row should be inserted.
-
getObjects
- Returns:
- The objects that should be inserted.
-