Class GroupByHeaderMenuConfiguration
java.lang.Object
org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
org.eclipse.nebula.widgets.nattable.extension.glazedlists.groupBy.GroupByHeaderMenuConfiguration
- All Implemented Interfaces:
IConfiguration
Configuration for adding a context menu to the groupBy header. By adding this
configuration a popup menu is openend to perform an ungroup action when
performing a right click on a groupBy indicator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final GroupByHeaderLayerTheGroupByHeaderLayerto which the menu should be attached.protected org.eclipse.swt.widgets.MenuThe groupBy header menu.static final String -
Constructor Summary
ConstructorsConstructorDescriptionGroupByHeaderMenuConfiguration(NatTable natTable, GroupByHeaderLayer groupByHeaderLayer) Creates the groupBy header menu configuration to add a popup menu to the groupBy header. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureUiBindings(UiBindingRegistry uiBindingRegistry) Configure NatTable'sUiBindingRegistryupon receiving this callback.protected PopupMenuBuildercreateGroupByHeaderMenu(NatTable natTable) Creates thePopupMenuBuilderfor the groupBy header menu with the menu items to ungroup.Methods inherited from class org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
configureLayer, configureRegistry
-
Field Details
-
UNGROUP_BY_MENU_ITEM_ID
- See Also:
-
groupByHeaderLayer
TheGroupByHeaderLayerto which the menu should be attached.- Since:
- 2.1
-
groupByHeaderMenu
protected org.eclipse.swt.widgets.Menu groupByHeaderMenuThe groupBy header menu.
-
-
Constructor Details
-
GroupByHeaderMenuConfiguration
Creates the groupBy header menu configuration to add a popup menu to the groupBy header.- Parameters:
natTable- The current NatTable instance.groupByHeaderLayer- TheGroupByHeaderLayerto which the menu should be attached.
-
-
Method Details
-
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.
-
createGroupByHeaderMenu
Creates thePopupMenuBuilderfor the groupBy header menu with the menu items to ungroup.- Parameters:
natTable- The NatTable where the menu should be attached.- Returns:
- The
PopupMenuBuilderthat is used to build the groupBy header menu.
-