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
FieldsModifier and TypeFieldDescriptionprotected final SelectionLayerprotected final IUniqueIndexLayer -
Constructor Summary
ConstructorsConstructorDescriptionTreeLayerExpandCollapseKeyBindings(IUniqueIndexLayer treeLayer, SelectionLayer selectionLayer) -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureUiBindings(UiBindingRegistry uiBindingRegistry) Configure NatTable'sUiBindingRegistryupon 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:IConfigurationConfigure NatTable'sUiBindingRegistryupon receiving this callback. A mechanism to customize key/mouse bindings.- Parameters:
uiBindingRegistry- TheUiBindingRegistryinstance to register ui bindings to.
-