@JsType public interface MenuItem extends RuntimeFeatureResource, HasEnabledStateChangeListeners
Modifier and Type | Method and Description |
---|---|
void |
accept(MenuVisitor visitor)
Causes the given
MenuVisitor to visit this menu item and its
children. |
String |
getCaption() |
String |
getContributionPoint() |
int |
getOrder() |
default List<String> |
getPermissions()
Get the list of permission names this menu item is restricted to.
|
MenuPosition |
getPosition() |
default List<ResourceActionRef> |
getResourceActions()
Get the list of
ResourceActionRef actions this menu item is
restricted to. |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
getDependencies, getIdentifier, getResourceType, isType
addEnabledStateChangeListener
boolean isEnabled()
void setEnabled(boolean enabled)
String getContributionPoint()
String getCaption()
MenuPosition getPosition()
int getOrder()
default List<ResourceActionRef> getResourceActions()
ResourceActionRef
actions this menu item is
restricted to.
The menu item will be available provided all the given actions are authorized within the current context.
default List<String> getPermissions()
The menu item will be available provided all the given permissions are authorized within the current context.
void accept(MenuVisitor visitor)
MenuVisitor
to visit this menu item and its
children.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.