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
Modifier and TypeFieldDescriptionprotected final GroupByHeaderLayer
TheGroupByHeaderLayer
to which the menu should be attached.protected org.eclipse.swt.widgets.Menu
The groupBy header menu.static final String
-
Constructor Summary
ConstructorDescriptionGroupByHeaderMenuConfiguration
(NatTable natTable, GroupByHeaderLayer groupByHeaderLayer) Creates the groupBy header menu configuration to add a popup menu to the groupBy header. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureUiBindings
(UiBindingRegistry uiBindingRegistry) Configure NatTable'sUiBindingRegistry
upon receiving this callback.protected PopupMenuBuilder
createGroupByHeaderMenu
(NatTable natTable) Creates thePopupMenuBuilder
for 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
TheGroupByHeaderLayer
to 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
- TheGroupByHeaderLayer
to which the menu should be attached.
-
-
Method Details
-
configureUiBindings
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.
-
createGroupByHeaderMenu
Creates thePopupMenuBuilder
for the groupBy header menu with the menu items to ungroup.- Parameters:
natTable
- The NatTable where the menu should be attached.- Returns:
- The
PopupMenuBuilder
that is used to build the groupBy header menu.
-