Interface MenuItem
-
- All Superinterfaces:
HasEnabledStateChangeListeners,Resource,RuntimeFeatureResource,RuntimeResource
- All Known Subinterfaces:
MenuCustom<T>,MenuGroup,MenuItemCommand,MenuItemPerspective,MenuItemPlain
- All Known Implementing Classes:
BaseMenuCustom,DefaultMenuGroup
@JsType public interface MenuItem extends RuntimeFeatureResource, HasEnabledStateChangeListeners
Meta-data for a Workbench MenuItem including permissions. The default is that all users have permission to access a MenuItem and that it is enabled.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(MenuVisitor visitor)Causes the givenMenuVisitorto visit this menu item and its children.StringgetCaption()StringgetContributionPoint()intgetOrder()default List<String>getPermissions()Get the list of permission names this menu item is restricted to.MenuPositiongetPosition()default List<ResourceActionRef>getResourceActions()Get the list ofResourceActionRefactions this menu item is restricted to.booleanisEnabled()voidsetEnabled(boolean enabled)-
Methods inherited from interface org.uberfire.workbench.model.menu.HasEnabledStateChangeListeners
addEnabledStateChangeListener
-
Methods inherited from interface org.uberfire.security.Resource
getDependencies, getIdentifier, getResourceType, isType
-
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
-
setEnabled
void setEnabled(boolean enabled)
-
getContributionPoint
String getContributionPoint()
-
getCaption
String getCaption()
-
getPosition
MenuPosition getPosition()
-
getOrder
int getOrder()
-
getResourceActions
default List<ResourceActionRef> getResourceActions()
Get the list ofResourceActionRefactions this menu item is restricted to.The menu item will be available provided all the given actions are authorized within the current context.
-
getPermissions
default List<String> getPermissions()
Get the list of permission names this menu item is restricted to.The menu item will be available provided all the given permissions are authorized within the current context.
-
accept
void accept(MenuVisitor visitor)
Causes the givenMenuVisitorto visit this menu item and its children.
-
-