Class TreeLayerExpandCollapseKeyBindings
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
-
- org.eclipse.nebula.widgets.nattable.tree.config.TreeLayerExpandCollapseKeyBindings
-
- All Implemented Interfaces:
IConfiguration
public class TreeLayerExpandCollapseKeyBindings extends AbstractUiBindingConfiguration
A default configuration that can be used as an addition for a NatTable with both aTreeLayer
and aSelectionLayer
, 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
Fields Modifier and Type Field Description protected SelectionLayer
selectionLayer
protected IUniqueIndexLayer
treeLayer
-
Constructor Summary
Constructors Constructor Description TreeLayerExpandCollapseKeyBindings(IUniqueIndexLayer treeLayer, SelectionLayer selectionLayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureUiBindings(UiBindingRegistry uiBindingRegistry)
Configure NatTable'sUiBindingRegistry
upon receiving this callback.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
configureLayer, configureRegistry
-
-
-
-
Field Detail
-
treeLayer
protected final IUniqueIndexLayer treeLayer
-
selectionLayer
protected final SelectionLayer selectionLayer
-
-
Constructor Detail
-
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 Detail
-
configureUiBindings
public void configureUiBindings(UiBindingRegistry uiBindingRegistry)
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.
-
-