Class RowShowCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractRowCommand
org.eclipse.nebula.widgets.nattable.hideshow.command.RowShowCommand
- All Implemented Interfaces:
ILayerCommand
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
ModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionSame semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.boolean
boolean
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractRowCommand
convertToTargetLayer, getLayer, getRowPosition, toString
-
Constructor Details
-
RowShowCommand
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
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.- Returns:
- a cloned instance of the command
- See Also:
-
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.
-