Class TreeExpandCollapseKeyAction
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.tree.action.TreeExpandCollapseKeyAction
-
- All Implemented Interfaces:
IKeyAction
public class TreeExpandCollapseKeyAction extends Object implements IKeyAction
This action toggles the state of a tree node (expanded <-> collapsed) located at the current selection anchor position. It has the same effect asTreeExpandCollapseAction
.
-
-
Field Summary
Fields Modifier and Type Field Description protected SelectionLayer
selectionLayer
-
Constructor Summary
Constructors Constructor Description TreeExpandCollapseKeyAction(SelectionLayer selectionLayer)
Create aTreeExpandCollapseKeyAction
configured with the givenSelectionLayer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(NatTable natTable, org.eclipse.swt.events.KeyEvent event)
-
-
-
Field Detail
-
selectionLayer
protected final SelectionLayer selectionLayer
-
-
Constructor Detail
-
TreeExpandCollapseKeyAction
public TreeExpandCollapseKeyAction(SelectionLayer selectionLayer)
Create aTreeExpandCollapseKeyAction
configured with the givenSelectionLayer
.- Parameters:
selectionLayer
- the action will be run based on the selection anchor of the givenSelectionLayer
.
-
-
Method Detail
-
run
public void run(NatTable natTable, org.eclipse.swt.events.KeyEvent event)
- Specified by:
run
in interfaceIKeyAction
-
-