Class RowHideShowLayerFixture

All Implemented Interfaces:
IRowHideShowLayer, ILayer, ILayerListener, IUniqueIndexLayer, IPersistable

public class RowHideShowLayerFixture extends RowHideShowLayer
A RowHideShowLayer for use in unit tests with a pre-canned set of hidden rows. Row indexes by positions: 4 1 2 5 6
  • Constructor Details

    • RowHideShowLayerFixture

      public RowHideShowLayerFixture()
    • RowHideShowLayerFixture

      public RowHideShowLayerFixture(IUniqueIndexLayer underlyingLayerFixture)
    • RowHideShowLayerFixture

      public RowHideShowLayerFixture(int... rowPositionsToHide)
  • Method Details

    • doCommand

      public boolean doCommand(ILayerCommand command)
      Description copied from interface: ILayer
      Opportunity to respond to a command as it flows down the stack. If the layer is not interested in the command it should allow the command to keep traveling down the stack.

      Note: Before the layer can process a command it must convert the command to its local coordinates using ILayerCommand.convertToTargetLayer(ILayer)

      Specified by:
      doCommand in interface ILayer
      Overrides:
      doCommand in class AbstractRowHideShowLayer
      Parameters:
      command - The command to execute.
      Returns:
      true if the command has been handled and was therefore consumed, false otherwise.
    • getLastCommand

      public ILayerCommand getLastCommand()