Class HierarchicalHideIndicatorMenuConfiguration
java.lang.Object
org.eclipse.nebula.widgets.nattable.config.AbstractUiBindingConfiguration
org.eclipse.nebula.widgets.nattable.hideshow.indicator.HierarchicalHideIndicatorMenuConfiguration
- All Implemented Interfaces:
IConfiguration
Configuration that is used to register ui bindings for opening menus on right
click on the cell edge of hidden columns and hidden rows in a
HierarchicalTreeLayer.
- Since:
- 1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ILayerThe layer in the column header that should be used to determine the height of the hidden column indicator.protected org.eclipse.swt.widgets.MenuThe menu for the hidden column indicator.protected org.eclipse.swt.widgets.MenuThe menu for the hidden row indicator. -
Constructor Summary
ConstructorsConstructorDescriptionHierarchicalHideIndicatorMenuConfiguration(NatTable natTable, ILayer columnHeaderLayer) Creates a menu configuration that attaches menus to the hidden row indicator and the hidden column indicator. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureUiBindings(UiBindingRegistry uiBindingRegistry) Configure NatTable'sUiBindingRegistryupon receiving this callback.protected PopupMenuBuildercreateColumnHeaderMenu(NatTable natTable) Creates thePopupMenuBuilderfor the column hide indicator menu with the menu items that should be added to the menu.protected PopupMenuBuildercreateRowHeaderMenu(NatTable natTable) Creates thePopupMenuBuilderfor the row hide indicator 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
-
columnHeaderLayer
The layer in the column header that should be used to determine the height of the hidden column indicator. Should be the top most layer in the column header region, e.g. the FilterRowHeaderComposite in case filtering is included. Can benullwhich leads to label inspection of the table row the mouse cursor moves over. -
columnHideIndicatorMenu
protected org.eclipse.swt.widgets.Menu columnHideIndicatorMenuThe menu for the hidden column indicator. -
rowHideIndicatorMenu
protected org.eclipse.swt.widgets.Menu rowHideIndicatorMenuThe menu for the hidden row indicator.
-
-
Constructor Details
-
HierarchicalHideIndicatorMenuConfiguration
Creates a menu configuration that attaches menus to the hidden row indicator and the hidden column indicator.- Parameters:
natTable- The NatTable instance to which the context menus should be added to.columnHeaderLayer- The layer in the column header that should be used to determine the height of the hidden column indicator. Should be the top most layer in the column header region, e.g. the FilterRowHeaderComposite in case filtering is included. Can benullwhich leads to label inspection of the table row the mouse cursor moves over.
-
-
Method Details
-
createColumnHeaderMenu
Creates thePopupMenuBuilderfor the column hide indicator 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 hide indicator menu.
-
createRowHeaderMenu
Creates thePopupMenuBuilderfor the row hide indicator 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 hide indicator 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.
-