Class 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 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.
    • 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 - the SelectionLayer - 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's UiBindingRegistry upon receiving this callback. A mechanism to customize key/mouse bindings.
        Parameters:
        uiBindingRegistry - The UiBindingRegistry instance to register ui bindings to.