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
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
ModifierConstructorDescriptionprotected
Clone constructor.UpdateRowGroupCollapseCommand
(GroupModel groupModel, GroupModel.Group group) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Same semantics asObject.clone()
Used to make a copies of the command if has to passed to different layer stacks.getGroup()
int[]
int[]
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
convertToTargetLayer
-
Constructor Details
-
UpdateRowGroupCollapseCommand
- Parameters:
groupModel
- TheGroupModel
to which theGroupModel.Group
belongs that should be updated.group
- TheGroupModel.Group
that should be updated.
-
UpdateRowGroupCollapseCommand
Clone constructor.- Parameters:
command
- The command to clone.
-
-
Method Details
-
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:
-
getGroupModel
- Returns:
- The
GroupModel
to which theGroupModel.Group
belongs that should be updated.
-
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
-