Class ColumnShowCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
-
- org.eclipse.nebula.widgets.nattable.hideshow.command.ColumnShowCommand
-
- All Implemented Interfaces:
ILayerCommand
public class ColumnShowCommand extends AbstractColumnCommand
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
Constructors Modifier Constructor Description protected
ColumnShowCommand(ColumnShowCommand command)
Clone constructor.ColumnShowCommand(ILayer layer, int columnPosition, boolean showLeftPosition, boolean showAll)
Creates aColumnShowCommand
to show a column that is hidden next to the transported column position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnShowCommand
cloneCommand()
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.boolean
isShowAll()
boolean
isShowLeftPosition()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
convertToTargetLayer, getColumnPosition, getLayer, toString
-
-
-
-
Constructor Detail
-
ColumnShowCommand
public ColumnShowCommand(ILayer layer, int columnPosition, boolean showLeftPosition, boolean showAll)
Creates aColumnShowCommand
to 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
protected ColumnShowCommand(ColumnShowCommand command)
Clone constructor.- Parameters:
command
- The command to clone.
-
-
Method Detail
-
cloneCommand
public ColumnShowCommand 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:
GridLayer.doCommand(ILayerCommand)
-
isShowLeftPosition
public boolean isShowLeftPosition()
- Returns:
true
if the column positions to the left of the transported column position should be shown again,false
if the columns to the right should be shown again.
-
isShowAll
public boolean isShowAll()
- Returns:
true
if all hidden adjacent columns should be shown again,false
if only the direct neighbor should be shown again but further hidden columns should stay hidden.
-
-