| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04  | 
|||||||||
| 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 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 menuId)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 menuId)
MenuAwareLabelUpdater instance. The supplied menuId is used identify the custom menu.
menuId - the menu ID| Method Detail | 
|---|
public final java.lang.String labelWhenDisabled(Context context,
                                                IdeAction action,
                                                java.lang.String originalLabel)
LabelUpdaterlabelWhenDisabled in interface LabelUpdatercontext - the current contextaction - the action to be updatedoriginalLabel - the action's first label
public final java.lang.String labelWhenEnabled(Context context,
                                               IdeAction action,
                                               java.lang.String originalLabel)
LabelUpdaterlabelWhenEnabled in interface LabelUpdatercontext - the current contextaction - the action to be updatedoriginalLabel - the action's first label
protected 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 actionpublic final void setDisabledFormat(java.lang.String format)
setDisabledFormat in interface LabelUpdaterformat - the value for disabled formatpublic final void setEnabledFormat(java.lang.String format)
setEnabledFormat in interface LabelUpdaterformat - the value for enabled formatprotected boolean matchMenu(java.util.EventObject event)
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||