Interface IMenuItemState
-
- All Known Implementing Classes:
VisibleColumnsRemaining
public interface IMenuItemState
Implementors represent a dynamic state of a
MenuItem
provided by aIMenuItemProvider
.See also:
PopupMenuBuilder.withEnabledState(String, IMenuItemState)
PopupMenuBuilder.withVisibleState(String, IMenuItemState)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isActive(NatEventData natEventData)
Return whether this state is currently active or not.
-
-
-
Method Detail
-
isActive
boolean isActive(NatEventData natEventData)
Return whether this state is currently active or not. Active means, that the menu item property this state is associated with will apply. E.g. if the state is used in conjunction with 'enablement', active means the menu item is to be enabled. This method is called every time the popup menu is shown.- Parameters:
natEventData
- NatTable location information where the popup menu was requested.- Returns:
true
if the state is active.
-
-