Class HideRowByIndexCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
-
- org.eclipse.nebula.widgets.nattable.hideshow.command.HideRowByIndexCommand
-
- All Implemented Interfaces:
ILayerCommand
public class HideRowByIndexCommand extends AbstractContextFreeCommand
Hide a row by index instead of position. Intended to be used to programmatically hide rows in complex compositions.- Since:
- 2.0
-
-
Constructor Summary
Constructors Modifier Constructor Description HideRowByIndexCommand(int... rowIndexes)
protected
HideRowByIndexCommand(HideRowByIndexCommand command)
Clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HideRowByIndexCommand
cloneCommand()
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.int[]
getRowIndexes()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
convertToTargetLayer
-
-
-
-
Constructor Detail
-
HideRowByIndexCommand
public HideRowByIndexCommand(int... rowIndexes)
- Parameters:
rowIndexes
- The row indexes that should be hidden.
-
HideRowByIndexCommand
protected HideRowByIndexCommand(HideRowByIndexCommand command)
Clone constructor.- Parameters:
command
- The command to clone.
-
-
Method Detail
-
cloneCommand
public HideRowByIndexCommand 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.- Specified by:
cloneCommand
in interfaceILayerCommand
- Overrides:
cloneCommand
in classAbstractContextFreeCommand
- Returns:
- a cloned instance of the command
- See Also:
GridLayer.doCommand(ILayerCommand)
-
getRowIndexes
public int[] getRowIndexes()
- Returns:
- The row indexes that should be hidden.
-
-