Class UpdateRowGroupCollapseCommand

java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
org.eclipse.nebula.widgets.nattable.group.performance.command.UpdateRowGroupCollapseCommand
All Implemented Interfaces:
ILayerCommand

public class UpdateRowGroupCollapseCommand extends AbstractContextFreeCommand
Command that is used to update the hidden indexes for a row group in the RowGroupExpandCollapseLayer. Internally used to sync grouping related layers.
Since:
1.6
  • Constructor Details

  • Method Details

    • cloneCommand

      public UpdateRowGroupCollapseCommand 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.
      Specified by:
      cloneCommand in interface ILayerCommand
      Overrides:
      cloneCommand in class AbstractContextFreeCommand
      Returns:
      a cloned instance of the command
      See Also:
    • getGroupModel

      public GroupModel getGroupModel()
      Returns:
      The GroupModel to which the GroupModel.Group belongs that should be updated.
    • getGroup

      public GroupModel.Group getGroup()
      Returns:
      The GroupModel.Group that should be updated.
    • getIndexesToHide

      public int[] getIndexesToHide()
      Returns:
      The indexes to hide.
      Since:
      2.0
    • getIndexesToShow

      public int[] getIndexesToShow()
      Returns:
      The indexes to show.
      Since:
      2.0
    • addIndexesToHide

      public void addIndexesToHide(int... indexes)
      Add the given indexes to the indexes to hide.
      Parameters:
      indexes - The indexes that should be added to the indexes to hide.
      Since:
      2.0
    • addIndexesToShow

      public void addIndexesToShow(int... indexes)
      Add the given indexes to the indexes to show.
      Parameters:
      indexes - The indexes that should be added to the indexes to show.
      Since:
      2.0