Class BaseMenuCustom<T>
- java.lang.Object
-
- org.uberfire.workbench.model.menu.impl.BaseMenuCustom<T>
-
- All Implemented Interfaces:
RuntimeFeatureResource,RuntimeResource,Resource,HasEnabledStateChangeListeners,MenuCustom<T>,MenuItem
public abstract class BaseMenuCustom<T> extends Object implements MenuCustom<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseMenuCustom()protectedBaseMenuCustom(boolean enabled)protectedBaseMenuCustom(String contributionPoint)protectedBaseMenuCustom(String contributionPoint, String caption)BaseMenuCustom(String contributionPoint, String caption, MenuPosition position)BaseMenuCustom(String contributionPoint, String caption, MenuPosition position, boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MenuVisitor visitor)Causes the givenMenuVisitorto visit this menu item and its children.voidaddEnabledStateChangeListener(EnabledStateChangeListener listener)Called when the enabled state of a Widget changesStringgetCaption()StringgetContributionPoint()StringgetIdentifier()An identifier that is unique among all the resources of the same type (seeResource.getResourceType()).intgetOrder()MenuPositiongetPosition()booleanisEnabled()voidsetEnabled(boolean enabled)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.uberfire.workbench.model.menu.MenuCustom
build
-
Methods inherited from interface org.uberfire.workbench.model.menu.MenuItem
getPermissions, getResourceActions
-
Methods inherited from interface org.uberfire.security.Resource
getDependencies, getResourceType, isType
-
-
-
-
Constructor Detail
-
BaseMenuCustom
protected BaseMenuCustom()
-
BaseMenuCustom
protected BaseMenuCustom(boolean enabled)
-
BaseMenuCustom
protected BaseMenuCustom(String contributionPoint)
-
BaseMenuCustom
public BaseMenuCustom(String contributionPoint, String caption, MenuPosition position)
-
BaseMenuCustom
public BaseMenuCustom(String contributionPoint, String caption, MenuPosition position, boolean enabled)
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Description copied from interface:ResourceAn identifier that is unique among all the resources of the same type (seeResource.getResourceType()).- Specified by:
getIdentifierin interfaceResource
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceMenuItem
-
getContributionPoint
public String getContributionPoint()
- Specified by:
getContributionPointin interfaceMenuItem
-
getCaption
public String getCaption()
- Specified by:
getCaptionin interfaceMenuItem
-
getPosition
public MenuPosition getPosition()
- Specified by:
getPositionin interfaceMenuItem
-
accept
public void accept(MenuVisitor visitor)
Description copied from interface:MenuItemCauses the givenMenuVisitorto visit this menu item and its children.
-
addEnabledStateChangeListener
public void addEnabledStateChangeListener(EnabledStateChangeListener listener)
Description copied from interface:HasEnabledStateChangeListenersCalled when the enabled state of a Widget changes- Specified by:
addEnabledStateChangeListenerin interfaceHasEnabledStateChangeListeners
-
-