Class HierarchicalTreeExpandCollapseCommand
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
-
- org.eclipse.nebula.widgets.nattable.tree.command.TreeExpandCollapseCommand
-
- org.eclipse.nebula.widgets.nattable.hierarchical.command.HierarchicalTreeExpandCollapseCommand
-
- All Implemented Interfaces:
ILayerCommand
public class HierarchicalTreeExpandCollapseCommand extends TreeExpandCollapseCommand
Command to expand or collapse a node in the HierarchicalTreeLayer. Specialization of theTreeExpandCollapseCommand
that adds the option to specify to which level the node should be expanded.- Since:
- 1.6
- See Also:
HierarchicalTreeLayer
,HierarchicalTreeExpandCollapseCommandHandler
-
-
Constructor Summary
Constructors Constructor Description HierarchicalTreeExpandCollapseCommand(int rowIndex, int columnIndex)
Creates a command that will expand/collapse the node at the given coordinates.HierarchicalTreeExpandCollapseCommand(int rowIndex, int columnIndex, int toLevel)
Creates a command that will expand/collapse the node at the given coordinates and subsequent nodes if specified by the level parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getToLevel()
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.tree.command.TreeExpandCollapseCommand
getColumnIndex, getParentIndex
-
Methods inherited from class org.eclipse.nebula.widgets.nattable.command.AbstractContextFreeCommand
cloneCommand, convertToTargetLayer
-
-
-
-
Constructor Detail
-
HierarchicalTreeExpandCollapseCommand
public HierarchicalTreeExpandCollapseCommand(int rowIndex, int columnIndex)
Creates a command that will expand/collapse the node at the given coordinates.- Parameters:
rowIndex
- The row index of the coordinate that should be expanded/collapsed.columnIndex
- The column index of the coordinate that should be expanded/collapsed.
-
HierarchicalTreeExpandCollapseCommand
public HierarchicalTreeExpandCollapseCommand(int rowIndex, int columnIndex, int toLevel)
Creates a command that will expand/collapse the node at the given coordinates and subsequent nodes if specified by the level parameter.- Parameters:
rowIndex
- The row index of the coordinate that should be expanded/collapsed.columnIndex
- The column index of the coordinate that should be expanded/collapsed.toLevel
- The level to which the node should be expanded to, or -1 if only the given node should be expanded.
-
-