Class 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 Detail

      • RowShowCommand

        public RowShowCommand​(ILayer layer,
                              int rowPosition,
                              boolean showTopPosition,
                              boolean showAll)
        Creates a RowShowCommand 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

      • 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.