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 Details

    • ColumnShowCommand

      public ColumnShowCommand(ILayer layer, int columnPosition, boolean showLeftPosition, boolean showAll)
      Creates a ColumnShowCommand 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 Details

    • cloneCommand

      public ColumnShowCommand cloneCommand()
      Description copied from interface: ILayerCommand
      Same semantics as Object.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:
      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.