Class RowGroupReorderEndCommand

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

public class RowGroupReorderEndCommand extends AbstractRowCommand
Command to end a row group reordering via drag mode.

The command does not inherit the RowReorderEndCommand as then it would be consumed first by the RowReorderLayer in the body layer stack and would not come to the row header layer stack.

Since:
1.6
  • Constructor Details

    • RowGroupReorderEndCommand

      public RowGroupReorderEndCommand(ILayer layer, int level, int toRowPosition)
      Parameters:
      layer - The layer to which the position matches.
      level - The group level on which the group reorder should be performed.
      toRowPosition - The row position to which the reorder should be performed on drag end.
    • RowGroupReorderEndCommand

      protected RowGroupReorderEndCommand(RowGroupReorderEndCommand command)
      Clone constructor.
      Parameters:
      command - The command to clone.
  • Method Details

    • getLevel

      public int getLevel()
      Returns:
      The group level on which the group reorder should be performed.
    • isReorderToTopEdge

      public boolean isReorderToTopEdge()
      Returns:
      true if the reorder should be performed to the top edge of the to position, false if the reorder should happen to the bottom edge, e.g. on reordering to the end of the table.
    • cloneCommand

      public RowGroupReorderEndCommand 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: