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