NatTable supports the definition of context menus to the table via the PopupMenuBuilder. Adding sub menus is currently only possible by creating a custom MenuItemProvider. But that approach does not support the dynamics for enabled/disabled or visible/invisible rendering of menu items. For this a MenuManager needs to be used. The current implementation makes it hard to implement this form the outside of the PopupMenuBuilder.
The PopupMenuBuilder should directly support the configuration of sub menus using the builder pattern.
NatTable supports the definition of context menus to the table via the
PopupMenuBuilder
. Adding sub menus is currently only possible by creating a customMenuItemProvider
. But that approach does not support the dynamics for enabled/disabled or visible/invisible rendering of menu items. For this aMenuManager
needs to be used. The current implementation makes it hard to implement this form the outside of thePopupMenuBuilder
.The
PopupMenuBuilder
should directly support the configuration of sub menus using the builder pattern.