public abstract class BaseMenuCustom<T> extends Object implements MenuCustom<T>
| Modifier | Constructor and Description |
|---|---|
protected |
BaseMenuCustom() |
protected |
BaseMenuCustom(boolean enabled) |
protected |
BaseMenuCustom(String contributionPoint) |
protected |
BaseMenuCustom(String contributionPoint,
String caption) |
|
BaseMenuCustom(String contributionPoint,
String caption,
MenuPosition position) |
|
BaseMenuCustom(String contributionPoint,
String caption,
MenuPosition position,
boolean enabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MenuVisitor visitor)
Causes the given
MenuVisitor to visit this menu item and its
children. |
void |
addEnabledStateChangeListener(EnabledStateChangeListener listener)
Called when the enabled state of a Widget changes
|
String |
getCaption() |
String |
getContributionPoint() |
String |
getIdentifier()
An identifier that is unique among all the resources of the same type
(see
Resource.getResourceType()). |
int |
getOrder() |
MenuPosition |
getPosition() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildgetPermissions, getResourceActionsgetDependencies, getResourceType, isTypeprotected BaseMenuCustom()
protected BaseMenuCustom(boolean enabled)
protected BaseMenuCustom(String contributionPoint)
public BaseMenuCustom(String contributionPoint, String caption, MenuPosition position)
public BaseMenuCustom(String contributionPoint, String caption, MenuPosition position, boolean enabled)
public String getIdentifier()
ResourceResource.getResourceType()).getIdentifier in interface Resourcepublic void setEnabled(boolean enabled)
setEnabled in interface MenuItempublic String getContributionPoint()
getContributionPoint in interface MenuItempublic String getCaption()
getCaption in interface MenuItempublic MenuPosition getPosition()
getPosition in interface MenuItempublic void accept(MenuVisitor visitor)
MenuItemMenuVisitor to visit this menu item and its
children.public void addEnabledStateChangeListener(EnabledStateChangeListener listener)
HasEnabledStateChangeListenersaddEnabledStateChangeListener in interface HasEnabledStateChangeListenersCopyright © 2012–2017 JBoss by Red Hat. All rights reserved.