|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.controller.MenuAwareLabelUpdater
public abstract class MenuAwareLabelUpdater
A LabelUpdater that allows a an action's label to be updated based on the menu where the action resides.
Field Summary |
---|
Fields inherited from interface oracle.ide.controller.LabelUpdater |
---|
LABEL_UPDATER_MACROS |
Constructor Summary | |
---|---|
MenuAwareLabelUpdater(java.lang.String menuLabel)
Creates a new MenuAwareLabelUpdater instance. |
Method Summary | |
---|---|
protected abstract java.lang.String |
disabledMenuSpecificLabel(IdeAction action,
java.lang.String originalLabel)
Gets the label to use for the action when it appears on the menu supplied in the constructor. |
protected abstract java.lang.String |
enabledMenuSpecificLabel(IdeAction action,
java.lang.String originalLabel)
Get the label to use for the disabled action when it appears on the menu supplied in the constructor. |
java.lang.String |
labelWhenDisabled(Context context,
IdeAction action,
java.lang.String originalLabel)
Returns the action's label when it is disabled. If null then the action will be left unchanged. |
java.lang.String |
labelWhenEnabled(Context context,
IdeAction action,
java.lang.String originalLabel)
Returns the action's label when it is enabled. If null then the action will be left unchanged. |
protected boolean |
matchMenu(java.util.EventObject event)
|
void |
setDisabledFormat(java.lang.String format)
Not implemented. |
void |
setEnabledFormat(java.lang.String format)
Not implemented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuAwareLabelUpdater(java.lang.String menuLabel)
MenuAwareLabelUpdater
instance.
The supplied menuLabel is used identify the custom
menu.NOTE: This should match the parent menu by ID, not by menu label. Will change in Sherman.
menuLabel
- the menu labelMethod Detail |
---|
public final java.lang.String labelWhenDisabled(Context context, IdeAction action, java.lang.String originalLabel)
LabelUpdater
labelWhenDisabled
in interface LabelUpdater
context
- the current contextaction
- the action to be updatedoriginalLabel
- the action's first labelpublic final java.lang.String labelWhenEnabled(Context context, IdeAction action, java.lang.String originalLabel)
LabelUpdater
labelWhenEnabled
in interface LabelUpdater
context
- the current contextaction
- the action to be updatedoriginalLabel
- the action's first labelprotected abstract java.lang.String disabledMenuSpecificLabel(IdeAction action, java.lang.String originalLabel)
action
- an action
protected abstract java.lang.String enabledMenuSpecificLabel(IdeAction action, java.lang.String originalLabel)
action
- an action
public final void setDisabledFormat(java.lang.String format)
setDisabledFormat
in interface LabelUpdater
format
- the value for disabled formatpublic final void setEnabledFormat(java.lang.String format)
setEnabledFormat
in interface LabelUpdater
format
- the value for enabled formatprotected boolean matchMenu(java.util.EventObject event)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |