Class ColumnShowCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
org.eclipse.nebula.widgets.nattable.hideshow.command.ColumnShowCommand
- All Implemented Interfaces:
ILayerCommand
Command to show a column that is currently hidden. As a hidden column has no
position itself the position of an adjacent column is transported down the
layer stack.
- Since:
- 1.6
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedColumnShowCommand(ColumnShowCommand command) Clone constructor.ColumnShowCommand(ILayer layer, int columnPosition, boolean showLeftPosition, boolean showAll) Creates aColumnShowCommandto show a column that is hidden next to the transported column position. -
Method Summary
Modifier and TypeMethodDescriptionSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.booleanbooleanMethods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
convertToTargetLayer, getColumnPosition, getLayer, toString
-
Constructor Details
-
ColumnShowCommand
public ColumnShowCommand(ILayer layer, int columnPosition, boolean showLeftPosition, boolean showAll) Creates aColumnShowCommandto show a column that is hidden next to the transported column position.- Parameters:
layer- The layer to which the column position correlates.columnPosition- The visible adjacent column position of the hidden columns that should be shown again.showLeftPosition- Whether the column positions to the left or the right of the transported column position should be shown again.showAll- Whether all hidden adjacent columns should be shown again or only the single direct adjacent column.
-
ColumnShowCommand
Clone constructor.- Parameters:
command- The command to clone.
-
-
Method Details
-
cloneCommand
Description copied from interface:ILayerCommandSame 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:
-
isShowLeftPosition
public boolean isShowLeftPosition()- Returns:
trueif the column positions to the left of the transported column position should be shown again,falseif the columns to the right should be shown again.
-
isShowAll
public boolean isShowAll()- Returns:
trueif all hidden adjacent columns should be shown again,falseif only the direct neighbor should be shown again but further hidden columns should stay hidden.
-