Class HierarchicalTreeExpandCollapseAction
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.hierarchical.action.HierarchicalTreeExpandCollapseAction
-
- All Implemented Interfaces:
IMouseAction
public class HierarchicalTreeExpandCollapseAction extends Object implements IMouseAction
IMouseAction
that triggers aHierarchicalTreeExpandCollapseCommand
for the clicked cell position to the specified level. By default registered on click on the tree expand/collapse icon.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description HierarchicalTreeExpandCollapseAction()
Creates theHierarchicalTreeExpandCollapseAction
that only expand/collapse the node at the coordinate where the action was triggered.HierarchicalTreeExpandCollapseAction(int toLevel)
Creates aHierarchicalTreeExpandCollapseAction
that expand/collapse a node to the given level.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
Translates the SWT MouseEvent to a NatTable command and executes that command accordingly.
-
-
-
Constructor Detail
-
HierarchicalTreeExpandCollapseAction
public HierarchicalTreeExpandCollapseAction()
Creates theHierarchicalTreeExpandCollapseAction
that only expand/collapse the node at the coordinate where the action was triggered.
-
HierarchicalTreeExpandCollapseAction
public HierarchicalTreeExpandCollapseAction(int toLevel)
Creates aHierarchicalTreeExpandCollapseAction
that expand/collapse a node to the given level.- Parameters:
toLevel
- The level to which a node should be expanded.
-
-
Method Detail
-
run
public void run(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
Description copied from interface:IMouseAction
Translates the SWT MouseEvent to a NatTable command and executes that command accordingly.- Specified by:
run
in interfaceIMouseAction
- Parameters:
natTable
- The NatTable instance on which the MouseEvent was fired and on which the command should be executed.event
- The received MouseEvent.
-
-