Class RowShowCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractRowCommand
-
- org.eclipse.nebula.widgets.nattable.hideshow.command.RowShowCommand
-
- All Implemented Interfaces:
ILayerCommand
public class RowShowCommand extends AbstractRowCommand
Command to show a row that is currently hidden. As a hidden row has no position itself the position of an adjacent row is transported down the layer stack.- Since:
- 1.6
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RowShowCommand(RowShowCommand command)
Clone constructor.RowShowCommand(ILayer layer, int rowPosition, boolean showTopPosition, boolean showAll)
Creates aRowShowCommand
to show a row that is hidden next to the transported row position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RowShowCommand
cloneCommand()
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.boolean
isShowAll()
boolean
isShowTopPosition()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractRowCommand
convertToTargetLayer, getLayer, getRowPosition, toString
-
-
-
-
Constructor Detail
-
RowShowCommand
public RowShowCommand(ILayer layer, int rowPosition, boolean showTopPosition, boolean showAll)
Creates aRowShowCommand
to show a row that is hidden next to the transported row position.- Parameters:
layer
- The layer to which the row position correlates.rowPosition
- The visible adjacent row position of the hidden rows that should be shown again.showTopPosition
- Whether the row positions to the top or the bottom of the transported row position should be shown again.showAll
- Whether all hidden adjacent rows should be shown again or only the single direct adjacent row.
-
RowShowCommand
protected RowShowCommand(RowShowCommand command)
Clone constructor.- Parameters:
command
- The command to clone.
-
-
Method Detail
-
cloneCommand
public RowShowCommand 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)
-
isShowTopPosition
public boolean isShowTopPosition()
- Returns:
true
if the row positions to the top of the transported row position should be shown again,false
if the rows to the bottom should be shown again.
-
isShowAll
public boolean isShowAll()
- Returns:
true
if all hidden adjacent rows should be shown again,false
if only the direct neighbor should be shown again but further hidden rows should stay hidden.
-
-