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 Summary
Constructors Modifier Constructor Description protected
UpdateRowGroupCollapseCommand(UpdateRowGroupCollapseCommand command)
Clone constructor.UpdateRowGroupCollapseCommand(GroupModel groupModel, GroupModel.Group group)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIndexesToHide(int... indexes)
Add the given indexes to the indexes to hide.void
addIndexesToShow(int... indexes)
Add the given indexes to the indexes to show.UpdateRowGroupCollapseCommand
cloneCommand()
Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.GroupModel.Group
getGroup()
GroupModel
getGroupModel()
int[]
getIndexesToHide()
int[]
getIndexesToShow()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
convertToTargetLayer
-
-
-
-
Constructor Detail
-
UpdateRowGroupCollapseCommand
public UpdateRowGroupCollapseCommand(GroupModel groupModel, GroupModel.Group group)
- Parameters:
groupModel
- TheGroupModel
to which theGroupModel.Group
belongs that should be updated.group
- TheGroupModel.Group
that should be updated.
-
UpdateRowGroupCollapseCommand
protected UpdateRowGroupCollapseCommand(UpdateRowGroupCollapseCommand command)
Clone constructor.- Parameters:
command
- The command to clone.
-
-
Method Detail
-
cloneCommand
public UpdateRowGroupCollapseCommand 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.- Specified by:
cloneCommand
in interfaceILayerCommand
- Overrides:
cloneCommand
in classAbstractContextFreeCommand
- Returns:
- a cloned instance of the command
- See Also:
GridLayer.doCommand(ILayerCommand)
-
getGroupModel
public GroupModel getGroupModel()
- Returns:
- The
GroupModel
to which theGroupModel.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
-
-