Class AbstractHeaderMenuConfiguration

  • All Implemented Interfaces:
    IConfiguration
    Direct Known Subclasses:
    HeaderMenuConfiguration

    public class AbstractHeaderMenuConfiguration
    extends AbstractUiBindingConfiguration
    Abstract implementation for adding header menus to a NatTable. There will be header menus attached to the column header, the row header and the corner region. By default empty menus will be attached, which will result in not showing a menu. On creating a specialized header menu configuration you can choose for which header region you want to add a menu.
    • Field Detail

      • colHeaderMenu

        protected org.eclipse.swt.widgets.Menu colHeaderMenu
        The column header menu.
      • rowHeaderMenu

        protected org.eclipse.swt.widgets.Menu rowHeaderMenu
        The row header menu
      • cornerMenu

        protected org.eclipse.swt.widgets.Menu cornerMenu
        The corner region menu
    • Constructor Detail

      • AbstractHeaderMenuConfiguration

        public AbstractHeaderMenuConfiguration​(NatTable natTable)
        Creates a header menu configuration that attaches menus to the row header, the column header and the corner region.
    • Method Detail

      • createColumnHeaderMenu

        protected PopupMenuBuilder createColumnHeaderMenu​(NatTable natTable)
        Creates the PopupMenuBuilder for the column header 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 header menu.
      • createRowHeaderMenu

        protected PopupMenuBuilder createRowHeaderMenu​(NatTable natTable)
        Creates the PopupMenuBuilder for the row header 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 header menu.
      • createCornerMenu

        protected PopupMenuBuilder createCornerMenu​(NatTable natTable)
        Creates the PopupMenuBuilder for the corner 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 corner 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.