Class HierarchicalHideIndicatorMenuConfiguration

java.lang.Object
org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
org.eclipse.nebula.widgets.nattable.hideshow.indicator.HierarchicalHideIndicatorMenuConfiguration
All Implemented Interfaces:
IConfiguration

public class HierarchicalHideIndicatorMenuConfiguration extends AbstractUiBindingConfiguration
Configuration that is used to register ui bindings for opening menus on right click on the cell edge of hidden columns and hidden rows in a HierarchicalTreeLayer.
Since:
1.6
  • Field Details

    • columnHeaderLayer

      protected ILayer columnHeaderLayer
      The layer in the column header that should be used to determine the height of the hidden column indicator. Should be the top most layer in the column header region, e.g. the FilterRowHeaderComposite in case filtering is included. Can be null which leads to label inspection of the table row the mouse cursor moves over.
    • columnHideIndicatorMenu

      protected org.eclipse.swt.widgets.Menu columnHideIndicatorMenu
      The menu for the hidden column indicator.
    • rowHideIndicatorMenu

      protected org.eclipse.swt.widgets.Menu rowHideIndicatorMenu
      The menu for the hidden row indicator.
  • Constructor Details

    • HierarchicalHideIndicatorMenuConfiguration

      public HierarchicalHideIndicatorMenuConfiguration(NatTable natTable, ILayer columnHeaderLayer)
      Creates a menu configuration that attaches menus to the hidden row indicator and the hidden column indicator.
      Parameters:
      natTable - The NatTable instance to which the context menus should be added to.
      columnHeaderLayer - The layer in the column header that should be used to determine the height of the hidden column indicator. Should be the top most layer in the column header region, e.g. the FilterRowHeaderComposite in case filtering is included. Can be null which leads to label inspection of the table row the mouse cursor moves over.
  • Method Details

    • createColumnHeaderMenu

      protected PopupMenuBuilder createColumnHeaderMenu(NatTable natTable)
      Creates the PopupMenuBuilder for the column hide indicator menu with the menu items that should be added to the menu.
      Parameters:
      natTable - The NatTable where the menu should be attached.
      Returns:
      The PopupMenuBuilder that is used to build the column hide indicator menu.
    • createRowHeaderMenu

      protected PopupMenuBuilder createRowHeaderMenu(NatTable natTable)
      Creates the PopupMenuBuilder for the row hide indicator menu with the menu items that should be added to the menu.
      Parameters:
      natTable - The NatTable where the menu should be attached.
      Returns:
      The PopupMenuBuilder that is used to build the row hide indicator menu.
    • 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.