Class AbstractHeaderMenuConfiguration
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
-
- org.eclipse.nebula.widgets.nattable.ui.menu.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 Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.widgets.Menu
colHeaderMenu
The column header menu.protected org.eclipse.swt.widgets.Menu
cornerMenu
The corner region menuprotected org.eclipse.swt.widgets.Menu
rowHeaderMenu
The row header menu
-
Constructor Summary
Constructors Constructor Description AbstractHeaderMenuConfiguration(NatTable natTable)
Creates a header menu configuration that attaches menus to the row header, the column header and the corner region.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureUiBindings(UiBindingRegistry uiBindingRegistry)
Configure NatTable'sUiBindingRegistry
upon receiving this callback.protected PopupMenuBuilder
createColumnHeaderMenu(NatTable natTable)
Creates thePopupMenuBuilder
for the column header menu with the menu items that should be added to the menu.protected PopupMenuBuilder
createCornerMenu(NatTable natTable)
Creates thePopupMenuBuilder
for the corner menu with the menu items that should be added to the menu.protected PopupMenuBuilder
createRowHeaderMenu(NatTable natTable)
Creates thePopupMenuBuilder
for the row header menu with the menu items that should be added to the menu.-
Methods inherited from class org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
configureLayer, configureRegistry
-
-
-
-
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 thePopupMenuBuilder
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 thePopupMenuBuilder
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 thePopupMenuBuilder
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'sUiBindingRegistry
upon receiving this callback. A mechanism to customize key/mouse bindings.- Parameters:
uiBindingRegistry
- TheUiBindingRegistry
instance to register ui bindings to.
-
-