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, wait
build
getPermissions, getResourceActions
getDependencies, getResourceType, isType
protected 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()
Resource
Resource.getResourceType()
).getIdentifier
in interface Resource
public void setEnabled(boolean enabled)
setEnabled
in interface MenuItem
public String getContributionPoint()
getContributionPoint
in interface MenuItem
public String getCaption()
getCaption
in interface MenuItem
public MenuPosition getPosition()
getPosition
in interface MenuItem
public void accept(MenuVisitor visitor)
MenuItem
MenuVisitor
to visit this menu item and its
children.public void addEnabledStateChangeListener(EnabledStateChangeListener listener)
HasEnabledStateChangeListeners
addEnabledStateChangeListener
in interface HasEnabledStateChangeListeners
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.