Class HideColumnByIndexCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
org.eclipse.nebula.widgets.nattable.hideshow.command.HideColumnByIndexCommand
- All Implemented Interfaces:
ILayerCommand
Hide a column by index instead of position. Intended to be used to
programmatically hide columns in complex compositions.
- Since:
- 2.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionHideColumnByIndexCommand
(int... columnIndexes) protected
Clone constructor. -
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[]
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
convertToTargetLayer
-
Constructor Details
-
HideColumnByIndexCommand
public HideColumnByIndexCommand(int... columnIndexes) - Parameters:
columnIndexes
- The column indexes that should be hidden.
-
HideColumnByIndexCommand
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.- Specified by:
cloneCommand
in interfaceILayerCommand
- Overrides:
cloneCommand
in classAbstractContextFreeCommand
- Returns:
- a cloned instance of the command
- See Also:
-
getColumnIndexes
public int[] getColumnIndexes()- Returns:
- The column indexes that should be hidden.
-