Class RowGroupExpandCollapseCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractRowCommand
org.eclipse.nebula.widgets.nattable.group.command.RowGroupExpandCollapseCommand
- All Implemented Interfaces:
ILayerCommand
Command to trigger expand/collapse on a row group at the specified
coordinates, based on the current expand/collapse state.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Clone constructor.RowGroupExpandCollapseCommand
(ILayer layer, int rowPosition) Create the command for a given row position and column position 0;RowGroupExpandCollapseCommand
(ILayer layer, int rowPosition, int columnPosition) Create the command for the given row and column positions. -
Method Summary
Modifier and TypeMethodDescriptionSame semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.int
int
getLocalColumnPosition
(ILayer targetLayer) Converts the locally transported column position from its origin layer to the given target layer.Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractRowCommand
convertToTargetLayer, getLayer, getRowPosition, toString
-
Constructor Details
-
RowGroupExpandCollapseCommand
Create the command for a given row position and column position 0;- Parameters:
layer
- The layer to which the positions match.rowPosition
- The row position to identify the row group.
-
RowGroupExpandCollapseCommand
Create the command for the given row and column positions.- Parameters:
layer
- The layer to which the positions match.rowPosition
- The row position to identify the row group.columnPosition
- The column position to identify the row group in a multi-level configuration.- Since:
- 1.6
-
RowGroupExpandCollapseCommand
Clone constructor.- Parameters:
command
- The command to clone.
-
-
Method Details
-
cloneCommand
Description copied from interface:ILayerCommand
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.- Returns:
- a cloned instance of the command
- See Also:
-
getColumnPositionLayer
- Returns:
- The layer to which the column position matches.
- Since:
- 1.6
-
getColumnPosition
public int getColumnPosition()- Returns:
- the columnPosition
- Since:
- 1.6
-
getLocalColumnPosition
Converts the locally transported column position from its origin layer to the given target layer.- Parameters:
targetLayer
- The target layer to convert the command to.- Returns:
- The column position converted to the given target layer or -1 in case the transformation failed.
- Since:
- 1.6
-