Class TreeExpandToLevelCommand
java.lang.Object
org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
org.eclipse.nebula.widgets.nattable.tree.command.TreeExpandToLevelCommand
- All Implemented Interfaces:
ILayerCommand
Command to expand all nodes to a specified level in a tree.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionTreeExpandToLevelCommand(int level) Create aTreeExpandToLevelCommandthat expands the nodes in a tree to the given level.TreeExpandToLevelCommand(Integer parentIndex, int level) Create aTreeExpandToLevelCommandthat expands the node at the given index in a tree to the given level.protected -
Method Summary
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
-
Constructor Details
-
TreeExpandToLevelCommand
public TreeExpandToLevelCommand(int level) Create aTreeExpandToLevelCommandthat expands the nodes in a tree to the given level. Nodes below the given level will not be expanded and stay collapsed.- Parameters:
level- The level to which the tree should be expanded.
-
TreeExpandToLevelCommand
Create aTreeExpandToLevelCommandthat expands the node at the given index in a tree to the given level. Nodes below the given level will not be expanded and stay collapsed.Using a parentIndex of
- Parameters:
parentIndex- The index of the tree node in the tree that should be expanded.nullif the whole tree should be expanded to a certain level.level- The level to which the tree node should be expanded.
-
TreeExpandToLevelCommand
-
-
Method Details
-
getParentIndex
- Returns:
- The index of the tree node in the tree that should be expanded to
a certain level or
nullif the whole tree should be expanded to a certain level.
-
getLevel
public int getLevel()- Returns:
- The level to which the tree should be expanded.
-