Class TreeLayerExpandCollapseKeyBindings
java.lang.Object
org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
org.eclipse.nebula.widgets.nattable.tree.config.TreeLayerExpandCollapseKeyBindings
- All Implemented Interfaces:
IConfiguration
A default configuration that can be used as an addition for a NatTable with
both a
TreeLayer
and a
SelectionLayer
, where also an alternative tree layer implementation
can be used. It adds the key bindings that allows the space bar to be pressed
to expand/collapse tree nodes.-
Field Summary
Modifier and TypeFieldDescriptionprotected final SelectionLayer
protected final IUniqueIndexLayer
-
Constructor Summary
ConstructorDescriptionTreeLayerExpandCollapseKeyBindings
(IUniqueIndexLayer treeLayer, SelectionLayer selectionLayer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureUiBindings
(UiBindingRegistry uiBindingRegistry) Configure NatTable'sUiBindingRegistry
upon receiving this callback.Methods inherited from class org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
configureLayer, configureRegistry
-
Field Details
-
treeLayer
-
selectionLayer
-
-
Constructor Details
-
TreeLayerExpandCollapseKeyBindings
public TreeLayerExpandCollapseKeyBindings(IUniqueIndexLayer treeLayer, SelectionLayer selectionLayer) - Parameters:
treeLayer
- provides the necessary labels to detect tree nodes that can be expanded/collapsed.selectionLayer
- theSelectionLayer
- provides the selection anchor (the context for the action).- Since:
- 1.6
-
-
Method Details
-
configureUiBindings
Description copied from interface:IConfiguration
Configure NatTable'sUiBindingRegistry
upon receiving this callback. A mechanism to customize key/mouse bindings.- Parameters:
uiBindingRegistry
- TheUiBindingRegistry
instance to register ui bindings to.
-