Class ColumnGroupReorderEndCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
-
- org.eclipse.nebula.widgets.nattable.group.performance.command.ColumnGroupReorderEndCommand
-
- All Implemented Interfaces:
ILayerCommand
public class ColumnGroupReorderEndCommand extends AbstractColumnCommand
Command to end a column group reordering via drag mode.The command does not inherit the ColumnReorderEndCommand as then it would be consumed first by the ColumnReorderLayer in the body layer stack and would not come to the column header layer stack.
- Since:
- 1.6
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ColumnGroupReorderEndCommand(ColumnGroupReorderEndCommand command)
Clone constructor.ColumnGroupReorderEndCommand(ILayer layer, int level, int toColumnPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnGroupReorderEndCommand
cloneCommand()
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.int
getLevel()
boolean
isReorderToLeftEdge()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractColumnCommand
convertToTargetLayer, getColumnPosition, getLayer, toString
-
-
-
-
Constructor Detail
-
ColumnGroupReorderEndCommand
public ColumnGroupReorderEndCommand(ILayer layer, int level, int toColumnPosition)
- Parameters:
layer
- The layer to which the position matches.level
- The group level on which the group reorder should be performed.toColumnPosition
- The column position to which the reorder should be performed on drag end.
-
ColumnGroupReorderEndCommand
protected ColumnGroupReorderEndCommand(ColumnGroupReorderEndCommand command)
Clone constructor.- Parameters:
command
- The command to clone.
-
-
Method Detail
-
getLevel
public int getLevel()
- Returns:
- The group level on which the group reorder should be performed.
-
isReorderToLeftEdge
public boolean isReorderToLeftEdge()
- Returns:
true
if the reorder should be performed to the left edge of the to position,false
if the reorder should happen to the right edge, e.g. on reordering to the end of the table.
-
cloneCommand
public ColumnGroupReorderEndCommand cloneCommand()
Description copied from interface:ILayerCommand
Same semantics asObject.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:
GridLayer.doCommand(ILayerCommand)
-
-