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
ConstructorsModifierConstructorDescriptionprotectedClone constructor.UpdateRowGroupCollapseCommand(GroupModel groupModel, GroupModel.Group group) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndexesToHide(int... indexes) Add the given indexes to the indexes to hide.voidaddIndexesToShow(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- TheGroupModelto which theGroupModel.Groupbelongs that should be updated.group- TheGroupModel.Groupthat should be updated.
-
UpdateRowGroupCollapseCommand
Clone constructor.- Parameters:
command- The command to clone.
-
-
Method Details
-
cloneCommand
Description copied from interface:ILayerCommandSame semantics asObject.clone()Used to make a copies of the command if has to passed to different layer stacks.- Specified by:
cloneCommandin interfaceILayerCommand- Overrides:
cloneCommandin classAbstractContextFreeCommand- Returns:
- a cloned instance of the command
- See Also:
-
getGroupModel
- Returns:
- The
GroupModelto which theGroupModel.Groupbelongs that should be updated.
-
getGroup
- Returns:
- The
GroupModel.Groupthat 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
-