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
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
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.swt.widgets.MenuThe column header menu.protected org.eclipse.swt.widgets.MenuThe corner region menuprotected org.eclipse.swt.widgets.MenuThe row header menu -
Constructor Summary
ConstructorsConstructorDescriptionAbstractHeaderMenuConfiguration(NatTable natTable) Creates a header menu configuration that attaches menus to the row header, the column header and the corner region. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureUiBindings(UiBindingRegistry uiBindingRegistry) Configure NatTable'sUiBindingRegistryupon receiving this callback.protected PopupMenuBuildercreateColumnHeaderMenu(NatTable natTable) Creates thePopupMenuBuilderfor the column header menu with the menu items that should be added to the menu.protected PopupMenuBuildercreateCornerMenu(NatTable natTable) Creates thePopupMenuBuilderfor the corner menu with the menu items that should be added to the menu.protected PopupMenuBuildercreateRowHeaderMenu(NatTable natTable) Creates thePopupMenuBuilderfor 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
-
Field Details
-
colHeaderMenu
protected org.eclipse.swt.widgets.Menu colHeaderMenuThe column header menu. -
rowHeaderMenu
protected org.eclipse.swt.widgets.Menu rowHeaderMenuThe row header menu -
cornerMenu
protected org.eclipse.swt.widgets.Menu cornerMenuThe corner region menu
-
-
Constructor Details
-
AbstractHeaderMenuConfiguration
Creates a header menu configuration that attaches menus to the row header, the column header and the corner region.
-
-
Method Details
-
createColumnHeaderMenu
Creates thePopupMenuBuilderfor 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
PopupMenuBuilderthat is used to build the column header menu.
-
createRowHeaderMenu
Creates thePopupMenuBuilderfor 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
PopupMenuBuilderthat is used to build the row header menu.
-
createCornerMenu
Creates thePopupMenuBuilderfor 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
PopupMenuBuilderthat is used to build the corner menu.
-
configureUiBindings
Description copied from interface:IConfigurationConfigure NatTable'sUiBindingRegistryupon receiving this callback. A mechanism to customize key/mouse bindings.- Parameters:
uiBindingRegistry- TheUiBindingRegistryinstance to register ui bindings to.
-