Class MenuItemStateMap
java.lang.Object
org.eclipse.nebula.widgets.nattable.ui.menu.MenuItemStateMap
A helper class for managing
IMenuItemStates in the
PopupMenuBuilder.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,List<IMenuItemState>> All currently registered states. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMenuItemState(String id, IMenuItemState state) Add an additional state for the given id.protected booleanisActive(String id, NatEventData natEventData) Checks if all the registered states for the given id are active.
-
Field Details
-
states
All currently registered states.
-
-
Constructor Details
-
MenuItemStateMap
public MenuItemStateMap()
-
-
Method Details
-
isActive
Checks if all the registered states for the given id are active.- Parameters:
id- the id identifying the menu item to be checked for activeness.natEventData- NatTable location information where the popup menu was requested.- Returns:
trueif ALL states registered for the given id are active OR no states exist. Otherwisefalse.
-