Class UpdateColumnGroupCollapseCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
-
- org.eclipse.nebula.widgets.nattable.group.performance.command.UpdateColumnGroupCollapseCommand
-
- All Implemented Interfaces:
ILayerCommand
public class UpdateColumnGroupCollapseCommand extends AbstractContextFreeCommand
Command that is used to update the hidden indexes for a column group in the ColumnGroupExpandCollapseLayer.- Since:
- 1.6
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UpdateColumnGroupCollapseCommand(UpdateColumnGroupCollapseCommand command)
Clone constructor.UpdateColumnGroupCollapseCommand(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.UpdateColumnGroupCollapseCommand
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
-
UpdateColumnGroupCollapseCommand
public UpdateColumnGroupCollapseCommand(GroupModel groupModel, GroupModel.Group group)
- Parameters:
groupModel
- TheGroupModel
to which theGroupModel.Group
belongs that should be updated.group
- TheGroupModel.Group
that should be updated.
-
UpdateColumnGroupCollapseCommand
protected UpdateColumnGroupCollapseCommand(UpdateColumnGroupCollapseCommand command)
Clone constructor.- Parameters:
command
- The command to clone.
-
-
Method Detail
-
cloneCommand
public UpdateColumnGroupCollapseCommand 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
-
-