|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractAction | +--com.webobjects.eoapplication.EOAction
EOAction objects are abstract representations of operations the user can invoke from the user interface. An action does not specify how it appears in the user interface -- it can appear as a button, a menu item, or both.
Each action defines a method called the action name, that is invoked when the action triggers. An action also has a description path, which describes the category of the action and its name. For example, a Quit action's description path might be "Document/Quit". In addition, the action can have a short description that differs from the last element of the description path, for example, "Quit the Application".
Actions can have icons for buttons in the application and small icons
for minor buttons in the user interface. To allow users to trigger actions
with "hot-keys," each action has a menu accelerator, a javax.swing.KeyStroke
the user can type on the keyboard.
Actions often appear in groups in the user interface: buttons in the same group are rendered close together and menu items in the group are rendered in separate menus like the Document, Edit, Tools, or Window menus. To group actions, EOAction defines a category priority. All actions in the same group have the same category priority. An additional parameter, the action priority defines the order in which actions appear within a group, for example, the order menu items appear within a menu.
An action triggers when the user clicks the corresponding user interface
widget. In most cases, the action's method is dispatched to the subcontrollers
that displays the action. Methods whose controller names end with
...ForControllerHierarchy
return such actions. In some cases, the
action's method is dispatched to the active widget, like the text field containing
the cursor. Methods whose names end with ...ForFocusComponent
return such actions. In other cases, the action's method is dispatched to a
particular object, usually the EOApplication at the root of the controller
hierarchy.
EOAction defines methods to create actions, access an action's parameters, manage groups of actions, and to access shared actions used in Direct to Java Client applications.
Inner Class Summary | |
static interface |
EOAction.ActiveWindowDependentAction
If an EOAction object implements the EOAction.ActiveWindowDependentAction interface, it is given
the opportunity to update its settings (like the menu accelerator) when
the user switches the active window. |
static interface |
EOAction.Enabling
The EOAction.Enabling interface defines a method, canPerformActionNamed , which allows an action receiver
to specify if an action (sent by an EOAction object) is enabled
for the receiver. |
Field Summary | |
static int |
ActivatePreviousWindowActionPriority
The priority of the Activate Previous Window action. |
static int |
AppendActionPriority
The priority of the Append action. |
static int |
BringAllWindowsToFrontActionPriority
The priority of the Bring All To Front action. |
static int |
CancelActionPriority
The priority of the Cancel action. |
static int |
ClearActionPriority
The priority of the Clear action. |
static int |
CloseWindowActionPriority
The priority of the Close window action. |
static int |
DeleteActionPriority
The priority of the Delete action. |
static String |
DescriptionPathSeparator
The String used to separate the components of a description path. |
static int |
DocumentCategoryPriority
The priority of the Document category. |
static int |
EditCategoryPriority
The priority of the Edit category. |
static int |
FindActionPriority
The priority of the Find action. |
static int |
HelpActionPriority
The priority of the Help action. |
static int |
HelpCategoryPriority
The priority of the Help category. |
static int |
InfoActionPriority
The priority of the Info action. |
static int |
InsertActionPriority
The priority of the Insert action. |
static int |
ListActionPriority
The priority of the List action. |
static int |
MinimizeActiveWindowActionPriority
The priority of the Minimize Window action. |
static int |
ModalActionsCategoryPriority
The priority of the Modal actions category. |
static int |
NavigationActionPriority
The priority of the actions to navigate around in the user interface |
static int |
NavigationActionsCategoryPriority
The priority of the Navigation actions category. |
static int |
NewMultipleWindowActionPriority
The priority of actions that create multiple windows. |
static int |
NewSingleWindowActionPriority
The priority of actions that create single windows. |
static int |
ObjectActionPriority
The priority of the actions sent to business objects. |
static int |
ObjectActionsCategoryPriority
The priority of the Object actions category. |
static int |
OkayActionPriority
The priority of the Okay action. |
static int |
OpenActionPriority
The priority of the Open action. |
static int |
PasteboardCopyActionPriority
The priority of the pasteboard Copy action. |
static int |
PasteboardCutActionPriority
The priority of the pasteboard Cut action. |
static int |
PasteboardDeleteActionPriority
The priority of the pasteboard Delete action. |
static int |
PasteboardPasteActionPriority
The priority of the pasteboard Paste action. |
static int |
PasteboardSelectAllActionPriority
The priority of the pasteboard Select All action. |
static int |
QuitActionPriority
The priority of the Quit action. |
static int |
RedoActionPriority
The priority of the Redo action. |
static int |
RefreshActionPriority
The priority of the Refresh action. |
static int |
RevertActionPriority
The priority of the Revert action. |
static int |
SaveActionPriority
The priority of the Save action. |
static int |
SaveAllActionPriority
The priority of the Save All action. |
static int |
SaveAsActionPriority
The priority of the Save As action. |
static int |
SearchActionPriority
The priority of the Search action. |
static int |
ToolsCategoryPriority
The priority of the Tools category. |
static int |
UndoActionPriority
The priority of the Undo action. |
static int |
WindowCategoryPriority
The priority of the Windows category. |
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
EOAction(String actionName,
String descriptionPath,
String shortDescription,
Icon icon,
Icon smallIcon,
KeyStroke menuAccelerator,
int categoryPriority,
int actionPriority)
Constructs a new EOAction as specified by the arguments. |
Method Summary | |
boolean |
actionCanBePerformedInContextOfController(EOController controller)
Returns whether or not an action can trigger, which depends on the state of controllers in the controller hierarchy. |
static EOAction |
actionForControllerHierarchy(String actionName,
String descriptionPath,
String shortDescription,
Icon icon,
Icon smallIcon,
KeyStroke menuAccelerator,
int categoryPriority,
int actionPriority,
boolean sendsActionToAllControllers)
Returns a new action (an EOAction object) as specified by the arguments. |
static EOAction |
actionForFocusComponent(String actionName,
String descriptionPath,
String shortDescription,
Icon icon,
Icon smallIcon,
KeyStroke menuAccelerator,
int categoryPriority,
int actionPriority,
String enabledKeyOnFocusComponent)
Returns a new action (an EOAction object) as specified by the arguments. |
static EOAction |
actionForObject(String actionName,
String descriptionPath,
String shortDescription,
Icon icon,
Icon smallIcon,
KeyStroke menuAccelerator,
int categoryPriority,
int actionPriority,
Object object)
Returns a new action (an EOAction object) as specified by the arguments. |
static EOAction |
actionForSupercontrollers(String actionName,
String descriptionPath,
String shortDescription,
Icon icon,
Icon smallIcon,
KeyStroke menuAccelerator,
int categoryPriority,
int actionPriority,
boolean sendsActionToAllControllers)
Returns a new action (an EOAction object) as specified by the arguments. |
String |
actionName()
Returns the name of the method that executes when the receiver triggers. |
void |
actionPerformed(ActionEvent event)
This method is called when an action is triggered, that is, the user presses the action's button or selects its menu item. |
int |
actionPriority()
Returns the receiver's action priority, which determines the order in which its button or menu item appears within a category. |
String |
actionTitle()
Returns the receiver's title, the last component of the receiver's description path. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
See the method description for addPropertyChangeListener in
Sun's documentation for javax.swing.AbstractAction . |
int |
categoryPriority()
Returns the receiver's category priority, which determines the order in which the group of buttons or menu items that contains the receiver appears. |
String |
descriptionPath()
Returns the receiver's menu hierarchy path, for example Document/Quit. |
NSArray |
descriptionPathComponents()
Returns an NSArray containing the separate components of the receiver's menu hierarchy path. |
boolean |
equals(Object comparisionObject)
Indicates whether some object "is equal to" this one. |
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
See the method description for firePropertyChange in
Sun's documentation for javax.swing.AbstractAction . |
Icon |
icon()
Returns the receiver's icon. |
static KeyStroke |
keyStrokeWithKeyCode(int keyCode)
Returns a KeyStroke given the numerical key code keyCode with the
appropriate modifier for the client operating system (usually CTRL_MASK). |
static KeyStroke |
keyStrokeWithKeyCodeAndModifiers(int keyCode,
int modifiers)
Returns a KeyStroke given the numerical key code keyCode and the modifier
mask modifiers. |
static KeyStroke |
keyStrokeWithKeyCodeAndShiftModifier(int keyCode)
Returns a KeyStroke given the numerical key code keyCode with the
SHIFT modifier. |
static KeyStroke |
keyStrokeWithString(String keyStrokeDescription)
Returns a KeyStroke for the String keyStrokeDescription . |
KeyStroke |
menuAccelerator()
Returns the KeyStroke the user can type to invoke the receiver instead of selecting it from the menu. |
static NSArray |
mergedActions(NSArray actions1,
NSArray actions2)
Returns an NSArray containing all of the actions in actionArray1 and
actionArray2 with duplicate actions removed. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
See the method description for removePropertyChangeListener in
Sun's documentation for javax.swing.AbstractAction . |
void |
setActionName(String actionName)
Sets the name of the method that executes when the receiver triggers. |
void |
setActionPriority(int priority)
Sets the receiver's action priority, which determines the order in which its button or menu item appears within a category. |
void |
setCategoryPriority(int priority)
Sets the receiver's category priority, which determines the order in which the group of buttons or menu items that contains the receiver appears. |
void |
setDescriptionPath(String descriptionPath)
Sets the receiver's menu hierarchy path to descriptionPath , for example Document/Quit. |
void |
setIcon(Icon icon)
Sets the receiver's icon to icon. |
void |
setMenuAccelerator(KeyStroke menuAccelerator)
Sets the KeyStroke the user can type to invoke the receiver instead of selecting it from a menu. |
void |
setShortDescription(String string)
Sets the action's short description to string . |
void |
setSmallIcon(Icon icon)
Sets the receiver's small icon used for some small buttons in the user interface. |
void |
setToolTip(String toolTip)
|
String |
shortDescription()
Returns the receiver's short description, which is displayed in buttons and pop-up menu items. |
Icon |
smallIcon()
Returns the receiver's small icon used for some small buttons in the user interface. |
static NSArray |
sortedActions(NSArray actions)
Returns a sorted NSArray containing the specified actions. |
static EOAction |
standardActionForFocusComponent(String actionName,
KeyStroke menuAccelerator,
int actionPriority,
String enabledKeyOnFocusComponent)
Returns a shared action as specified by the arguments. |
static EOAction |
standardActivatePreviousWindowActionForWindowObserver()
Returns a shared action (an EOAction object) for the activatePreviousWindow
method, which is dispatched directly to the window observer object of the application. |
static EOAction |
standardAddActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the add
method which is dispatched in the controller hierarchy. |
static EOAction |
standardAppendActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the append
method which is dispatched in the controller hierarchy. |
static EOAction |
standardBringAllWindowsToFrontActionForWindowObserver()
Returns a shared action (an EOAction object) for the bringAllWindowsToFront
method, which is dispatched directly to the window observer object of the application. |
static EOAction |
standardCancelActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the cancel
method which is dispatched in the controller hierarchy. |
static EOAction |
standardClearActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the clear
method which is dispatched in the controller hierarchy. |
static EOAction |
standardCloseWindowActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the closeWindow
method which is dispatched in the controller hierarchy. |
static EOAction |
standardDeleteActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the delete
method which is dispatched in the controller hierarchy. |
static EOAction |
standardDeselectActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the deselect
method which is dispatched in the controller hierarchy. |
static EOAction |
standardDocumentActionForApplication(String actionName,
KeyStroke menuAccelerator,
int actionPriority)
Returns an action with the method name actionName , menu accelerator
menuAccelerator , and action priority actionPriority . |
static EOAction |
standardDocumentActionForControllerHierarchy(String actionName,
KeyStroke menuAccelerator,
int actionPriority)
Returns an action as specified by the arguments. |
static EOAction |
standardDocumentActionForControllerHierarchy(String actionName,
String baseTitle,
KeyStroke menuAccelerator,
int actionPriority)
Returns an action as specified by the arguments. |
static EOAction |
standardEditActionForControllerHierarchy(String actionName,
KeyStroke menuAccelerator,
int actionPriority)
Returns an action as specified by the arguments. |
static NSArray |
standardEditActionsForFocusComponent()
Returns an NSArray containing shared actions for the cut, copy, paste and selectAll actions. |
static EOAction |
standardFindActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the find
method which is dispatched in the controller hierarchy. |
static EOAction |
standardInsertActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the insert
method which is dispatched in the controller hierarchy. |
static EOAction |
standardInsertWithTaskActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the insertWithTask
method which is dispatched in the controller hierarchy. |
static EOAction |
standardMinimizeActiveWindowActionForWindowObserver()
Returns a shared action (an EOAction object) for the minimizeActiveWindow
method, which is dispatched directly to the window observer object of the application. |
static EOAction |
standardOkActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the ok
method which is dispatched in the controller hierarchy. |
static EOAction |
standardOkAndSaveActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the ok method, displayed
as a Save action, which is dispatched in the controller hierarchy. |
static EOAction |
standardOpenWithTaskActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the openWithTask
method which is dispatched in the controller hierarchy. |
static EOAction |
standardQuitActionForApplication()
Returns a shared action (an EOAction object) for the quit
method, which is dispatched directly to the EOApplication object at the
top of the controller hierarchy. |
static EOAction |
standardRedoActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the redo
method which is dispatched in the controller hierarchy. |
static EOAction |
standardRefreshActionForApplication()
Returns a shared action (an EOAction object) for the collectChangesFromServer
method, displayed as a Refresh action, which is dispatched directly to the
EOApplication object at the top of the controller hierarchy. |
static EOAction |
standardRemoveActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the remove
method which is dispatched in the controller hierarchy. |
static EOAction |
standardRevertActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the revert
method which is dispatched in the controller hierarchy. |
static EOAction |
standardSaveActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the save
method which is dispatched in the controller hierarchy. |
static EOAction |
standardSaveAllActionForApplication()
Returns a shared action (an EOAction object) for the saveAll
method, which is dispatched directly to the EOApplication object at the
top of the controller hierarchy. |
static EOAction |
standardSaveAsActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the saveAs
method which is dispatched in the controller hierarchy. |
static EOAction |
standardSelectActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the select
method which is dispatched in the controller hierarchy. |
static EOAction |
standardUndoActionForControllerHierarchy()
Returns a shared action (an EOAction object) for the undo
method which is dispatched in the controller hierarchy. |
String |
toolTip()
|
String |
toString()
Returns the receiver as a string that states the receiver's method name, description path, category priority, and action priority. |
Methods inherited from class javax.swing.AbstractAction |
clone, getKeys, getValue, isEnabled, putValue, setEnabled |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ActivatePreviousWindowActionPriority
standardActivatePreviousWindowActionForWindowObserver()
public static final int AppendActionPriority
standardAppendActionForControllerHierarchy()
public static final int BringAllWindowsToFrontActionPriority
standardBringAllWindowsToFrontActionForWindowObserver()
public static final int CancelActionPriority
standardCancelActionForControllerHierarchy()
public static final int ClearActionPriority
standardClearActionForControllerHierarchy()
public static final int CloseWindowActionPriority
standardCloseWindowActionForControllerHierarchy()
public static final int DeleteActionPriority
standardDeleteActionForControllerHierarchy()
,
standardRemoveActionForControllerHierarchy()
,
standardDeselectActionForControllerHierarchy()
public static final String DescriptionPathSeparator
public static final int DocumentCategoryPriority
standardDocumentActionForControllerHierarchy(String, KeyStroke, int)
public static final int EditCategoryPriority
standardEditActionForControllerHierarchy(String, KeyStroke, int)
,
standardActionForFocusComponent(String, KeyStroke, int, String)
public static final int FindActionPriority
standardFindActionForControllerHierarchy()
public static final int HelpActionPriority
public static final int HelpCategoryPriority
public static final int InfoActionPriority
public static final int InsertActionPriority
standardInsertActionForControllerHierarchy()
,
standardInsertWithTaskActionForControllerHierarchy()
,
standardAddActionForControllerHierarchy()
,
standardSelectActionForControllerHierarchy()
public static final int ListActionPriority
standardOpenWithTaskActionForControllerHierarchy()
public static final int MinimizeActiveWindowActionPriority
standardMinimizeActiveWindowActionForWindowObserver()
public static final int ModalActionsCategoryPriority
standardCancelActionForControllerHierarchy()
,
standardOkActionForControllerHierarchy()
,
standardOkAndSaveActionForControllerHierarchy()
public static final int NavigationActionPriority
EOWindowController.defaultActions()
public static final int NavigationActionsCategoryPriority
EOWindowController.defaultActions()
public static final int NewMultipleWindowActionPriority
public static final int NewSingleWindowActionPriority
public static final int ObjectActionPriority
public static final int ObjectActionsCategoryPriority
public static final int OkayActionPriority
standardOkActionForControllerHierarchy()
,
standardOkAndSaveActionForControllerHierarchy()
public static final int OpenActionPriority
standardOpenWithTaskActionForControllerHierarchy()
public static final int PasteboardCopyActionPriority
standardEditActionsForFocusComponent()
public static final int PasteboardCutActionPriority
standardEditActionsForFocusComponent()
public static final int PasteboardDeleteActionPriority
standardEditActionsForFocusComponent()
public static final int PasteboardPasteActionPriority
standardEditActionsForFocusComponent()
public static final int PasteboardSelectAllActionPriority
standardEditActionsForFocusComponent()
public static final int QuitActionPriority
standardQuitActionForApplication()
public static final int RedoActionPriority
standardRedoActionForControllerHierarchy()
public static final int RefreshActionPriority
standardRefreshActionForApplication()
public static final int RevertActionPriority
standardRevertActionForControllerHierarchy()
public static final int SaveActionPriority
standardSaveActionForControllerHierarchy()
public static final int SaveAllActionPriority
standardSaveAllActionForApplication()
public static final int SaveAsActionPriority
standardSaveAsActionForControllerHierarchy()
public static final int SearchActionPriority
public static final int ToolsCategoryPriority
public static final int UndoActionPriority
standardUndoActionForControllerHierarchy()
public static final int WindowCategoryPriority
standardCloseWindowActionForControllerHierarchy()
Constructor Detail |
public EOAction(String actionName, String descriptionPath, String shortDescription, Icon icon, Icon smallIcon, KeyStroke menuAccelerator, int categoryPriority, int actionPriority)
actionName
- the name of the action methoddescriptionPath
- the description path of the actionshortDescription
- the short description of the actionicon
- the icon of the actionsmallIcon
- the small icon of the actionmenuAccelerator
- the menu accelerator of the actioncategoryPriority
- the category priority of the actionactionPriority
- the action priority of the actionactionName()
,
descriptionPath()
,
shortDescription()
,
icon()
,
smallIcon()
,
menuAccelerator()
,
categoryPriority()
,
actionPriority()
Method Detail |
public boolean actionCanBePerformedInContextOfController(EOController controller)
controller
- the EOControllertrue
if an action can trigger; false
otherwisepublic static EOAction actionForControllerHierarchy(String actionName, String descriptionPath, String shortDescription, Icon icon, Icon smallIcon, KeyStroke menuAccelerator, int categoryPriority, int actionPriority, boolean sendsActionToAllControllers)
sendsActionToAllControllers
is true
, the action is dispatched to all subcontrollers of
the controller that displays the action. Otherwise, the action is
dispatched only to the first subcontroller that responds to it.actionName
- the name of the action methoddescriptionPath
- the description path of the actionshortDescription
- the short description of the actionicon
- the icon of the actionsmallIcon
- the small icon of the actionmenuAccelerator
- the menu accelerator of the actioncategoryPriority
- the category priority of the actionactionPriority
- the action priority of the actionsendsActionToAllControllers
- whether to dispatch the action
to all subcontrollers or just to the first that respondsactionName()
,
descriptionPath()
,
shortDescription()
,
icon()
,
smallIcon()
,
menuAccelerator()
,
categoryPriority()
,
actionPriority()
public static EOAction actionForFocusComponent(String actionName, String descriptionPath, String shortDescription, Icon icon, Icon smallIcon, KeyStroke menuAccelerator, int categoryPriority, int actionPriority, String enabledKeyOnFocusComponent)
enabledKeyOnFocusComponent
specifies the name of the field or method,
resolved by key-value coding, specifying whether the action is enabled
for the focus component (for example, "editable" for the action "cut").actionName
- the name of the action methoddescriptionPath
- the description path of the actionshortDescription
- the short description of the actionicon
- the icon of the actionsmallIcon
- the small icon of the actionmenuAccelerator
- the menu accelerator of the actioncategoryPriority
- the category priority of the actionactionPriority
- the action priority of the actionenabledKeyOnFocusComponent
- the key path to resolve to determine
whether the action is enabled for the focus componentactionName()
,
descriptionPath()
,
shortDescription()
,
icon()
,
smallIcon()
,
menuAccelerator()
,
categoryPriority()
,
actionPriority()
public static EOAction actionForObject(String actionName, String descriptionPath, String shortDescription, Icon icon, Icon smallIcon, KeyStroke menuAccelerator, int categoryPriority, int actionPriority, Object object)
EOApplication.sharedApplication()
.actionName
- the name of the action methoddescriptionPath
- the description path of the actionshortDescription
- the short description of the actionicon
- the icon of the actionsmallIcon
- the small icon of the actionmenuAccelerator
- the menu accelerator of the actioncategoryPriority
- the category priority of the actionactionPriority
- the action priority of the actionobject
- the object to which the action is dispatcheddescriptionPath()
,
shortDescription()
,
icon()
,
smallIcon()
,
menuAccelerator()
,
categoryPriority()
,
actionPriority()
public static EOAction actionForSupercontrollers(String actionName, String descriptionPath, String shortDescription, Icon icon, Icon smallIcon, KeyStroke menuAccelerator, int categoryPriority, int actionPriority, boolean sendsActionToAllControllers)
sendsActionToAllControllers
is true
, the action is dispatched to all supercontrollers of
the controller that displays the action. Otherwise, the action is
dispatched only to the first supercontroller that responds to it.actionName
- the name of the action methoddescriptionPath
- the description path of the actionshortDescription
- the short description of the actionicon
- the icon of the actionsmallIcon
- the small icon of the actionmenuAccelerator
- the menu accelerator of the actioncategoryPriority
- the category priority of the actionactionPriority
- the action priority of the actionsendsActionToAllControllers
- whether to dispatch the action
to all supercontrollers or just to the first that respondsactionName()
,
descriptionPath()
,
shortDescription()
,
icon()
,
smallIcon()
,
menuAccelerator()
,
categoryPriority()
,
actionPriority()
public String actionName()
public void actionPerformed(ActionEvent event)
actionPerformed
in class AbstractAction
event
- the ActionEventpublic int actionPriority()
categoryPriority()
public String actionTitle()
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in
Sun's documentation for javax.swing.AbstractAction
.addPropertyChangeListener
in class AbstractAction
listener
- the PropertyChangeListenerAbstractAction.addPropertyChangeListener(PropertyChangeListener)
public int categoryPriority()
public String descriptionPath()
public NSArray descriptionPathComponents()
public boolean equals(Object comparisionObject)
equals
in class Object
comparisionObject
- the reference object with which to comparetrue
if this object is the same as the comparisionObject argument; false
otherwiseprotected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
firePropertyChange
in
Sun's documentation for javax.swing.AbstractAction
.firePropertyChange
in class AbstractAction
listener
- the PropertyChangeListenerAbstractAction.firePropertyChange(String, Object, Object)
public Icon icon()
public static KeyStroke keyStrokeWithKeyCode(int keyCode)
keyCode
with the
appropriate modifier for the client operating system (usually CTRL_MASK).
See Sun's javax.swing.KeyStroke
documentation for more information.keyCode
- the numerical key codekeyCode
KeyStroke
public static KeyStroke keyStrokeWithKeyCodeAndModifiers(int keyCode, int modifiers)
keyCode
and the modifier
mask modifiers. This method adds the appropriate modifier for the client
operating system (usually CTRL_MASK).
See Sun's javax.swing.KeyStroke
documentation for more information.keyCode
- the numerical key codemodifiers
- the modifier maskkeyCode
and modifiersKeyStroke
public static KeyStroke keyStrokeWithKeyCodeAndShiftModifier(int keyCode)
keyCode
with the
SHIFT modifier. This method also adds the appropriate modifier for the
client operating system (usually CTRL_MASK).
See Sun's javax.swing.KeyStroke
documentation for more information.keyCode
- the numerical key codeKeyStroke
public static KeyStroke keyStrokeWithString(String keyStrokeDescription)
keyStrokeDescription
. This method adds
the appropriate modifier for the client operating system (usually CTRL_MASK).
See Sun's javax.swing.KeyStroke
documentation for more information.keyStrokeDescription
- the description of the KeyStrokenull
otherwiseKeyStroke
public KeyStroke menuAccelerator()
public static NSArray mergedActions(NSArray actions1, NSArray actions2)
actionArray1
and
actionArray2
with duplicate actions removed.actions1
- an NSArray of actionsactions2
- an NSArray of actionspublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in
Sun's documentation for javax.swing.AbstractAction
.removePropertyChangeListener
in class AbstractAction
listener
- the PropertyChangeListenerAbstractAction.removePropertyChangeListener(PropertyChangeListener)
public void setActionName(String actionName)
actionName
- the name of the method that executes when the receiver triggerspublic void setActionPriority(int priority)
priority
- the receiver's action prioritypublic void setCategoryPriority(int priority)
priority
- the receiver's category prioritypublic void setDescriptionPath(String descriptionPath)
descriptionPath
, for example Document/Quit.descriptionPath
- the receiver's menu hierarchy pathpublic void setIcon(Icon icon)
icon
- the iconpublic void setMenuAccelerator(KeyStroke menuAccelerator)
menuAccelerator
- the KeyStroke to invoke the receiverkeyStrokeWithKeyCode(int)
,
keyStrokeWithKeyCodeAndModifiers(int, int)
,
keyStrokeWithKeyCodeAndShiftModifier(int)
public void setShortDescription(String string)
string
. The short description
appears in buttons and pop-up menu items. If shortDescription
is null
, the
receiver's title is displayed instead.string
- the action's short descriptionactionTitle()
public void setSmallIcon(Icon icon)
icon
- the receiver's small iconpublic void setToolTip(String toolTip)
public String shortDescription()
null
or has not been
assigned, shortDescription
returns the action's title.actionTitle()
public Icon smallIcon()
shortDescription()
public static NSArray sortedActions(NSArray actions)
actions
- an NSArray of actionscategoryPriority()
,
actionPriority()
,
descriptionPath()
public static EOAction standardActionForFocusComponent(String actionName, KeyStroke menuAccelerator, int actionPriority, String enabledKeyOnFocusComponent)
EOAction.EditCategoryPriority
,
so the action is grouped with the other edit actions.actionName
- the name of the actionmenuAccelerator
- the menu accelerator of the actionactionPriority
- the action priority of the actionenabledKeyOnFocusComponent
- the key path to resolve to determine
whether the action is enabled for the focus componentactionName()
,
menuAccelerator()
,
actionPriority()
,
EditCategoryPriority
public static EOAction standardActivatePreviousWindowActionForWindowObserver()
activatePreviousWindow
method, which is dispatched directly to the window observer object of the application.activatePreviousWindow
methodActivatePreviousWindowActionPriority
public static EOAction standardAddActionForControllerHierarchy()
add
method which is dispatched in the controller hierarchy.add
methodInsertActionPriority
public static EOAction standardAppendActionForControllerHierarchy()
append
method which is dispatched in the controller hierarchy.append
methodAppendActionPriority
public static EOAction standardBringAllWindowsToFrontActionForWindowObserver()
bringAllWindowsToFront
method, which is dispatched directly to the window observer object of the application.bringAllWindowsToFront
methodBringAllWindowsToFrontActionPriority
public static EOAction standardCancelActionForControllerHierarchy()
cancel
method which is dispatched in the controller hierarchy.cancel
methodCancelActionPriority
public static EOAction standardClearActionForControllerHierarchy()
clear
method which is dispatched in the controller hierarchy.clear
methodClearActionPriority
public static EOAction standardCloseWindowActionForControllerHierarchy()
closeWindow
method which is dispatched in the controller hierarchy.closeWindow
methodCloseWindowActionPriority
public static EOAction standardDeleteActionForControllerHierarchy()
delete
method which is dispatched in the controller hierarchy.delete
methodDeleteActionPriority
public static EOAction standardDeselectActionForControllerHierarchy()
deselect
method which is dispatched in the controller hierarchy.deselect
methodDeleteActionPriority
public static EOAction standardDocumentActionForApplication(String actionName, KeyStroke menuAccelerator, int actionPriority)
actionName
, menu accelerator
menuAccelerator
, and action priority actionPriority
. When the action
triggers, it is dispatched directly to the EOApplication object at the
top of the controller hierarchy. The action's category priority is
EOAction.DocumentCategoryPriority
, so the action is grouped
with the other document actions.#actionName
- the name of the action#menuAccelerator
- the menu accelerator of the action#actionPriority
- the action priority of the actionpublic static EOAction standardDocumentActionForControllerHierarchy(String actionName, String baseTitle, KeyStroke menuAccelerator, int actionPriority)
baseTitle
parameter
is the name of the action as it appears in the user interface and is used
for both the short description and the action title. When the action triggers,
it is dispatched to the subcontrollers of the controller that displays it.
The action's category priority is EOAction.DocumentCategoryPriority
,
so the action is grouped with the other document actions.actionName
- the name of the action methodbaseTitle
- used for both the short description and action titlemenuAccelerator
- the menu accelerator of the actionactionPriority
- the action priority of the actionactionName()
,
actionTitle()
,
shortDescription()
,
menuAccelerator()
,
actionPriority()
,
DocumentCategoryPriority
public static EOAction standardDocumentActionForControllerHierarchy(String actionName, KeyStroke menuAccelerator, int actionPriority)
EOAction.DocumentCategoryPriority
,
so the action is grouped with the other document actions.actionName
- the name of the action methodmenuAccelerator
- the menu accelerator of the actionactionPriority
- the action priority of the actionactionName()
,
actionTitle()
,
shortDescription()
,
menuAccelerator()
,
actionPriority()
,
DocumentCategoryPriority
public static EOAction standardEditActionForControllerHierarchy(String actionName, KeyStroke menuAccelerator, int actionPriority)
EOAction.EditCategoryPriority
,
so the action is grouped with the other edit actions.actionName
- the name of the actionmenuAccelerator
- the menu accelerator of the actionactionPriority
- the action priority of the actionactionName()
,
menuAccelerator()
,
actionPriority()
public static NSArray standardEditActionsForFocusComponent()
PasteboardCutActionPriority
,
PasteboardCopyActionPriority
,
PasteboardPasteActionPriority
,
PasteboardSelectAllActionPriority
public static EOAction standardFindActionForControllerHierarchy()
find
method which is dispatched in the controller hierarchy.find
methodFindActionPriority
public static EOAction standardInsertActionForControllerHierarchy()
insert
method which is dispatched in the controller hierarchy.insert
methodInsertActionPriority
public static EOAction standardInsertWithTaskActionForControllerHierarchy()
insertWithTask
method which is dispatched in the controller hierarchy.insertWithTask
methodInsertActionPriority
public static EOAction standardMinimizeActiveWindowActionForWindowObserver()
minimizeActiveWindow
method, which is dispatched directly to the window observer object of the application.minimizeActiveWindow
methodMinimizeActiveWindowActionPriority
public static EOAction standardOkActionForControllerHierarchy()
ok
method which is dispatched in the controller hierarchy.ok
methodOkayActionPriority
public static EOAction standardOkAndSaveActionForControllerHierarchy()
ok
method, displayed
as a Save action, which is dispatched in the controller hierarchy.ok
method, displayed as a Save actionOkayActionPriority
public static EOAction standardOpenWithTaskActionForControllerHierarchy()
openWithTask
method which is dispatched in the controller hierarchy.openWithTask
methodOpenActionPriority
public static EOAction standardQuitActionForApplication()
quit
method, which is dispatched directly to the EOApplication object at the
top of the controller hierarchy.quit
methodQuitActionPriority
public static EOAction standardRedoActionForControllerHierarchy()
redo
method which is dispatched in the controller hierarchy.redo
methodRedoActionPriority
public static EOAction standardRefreshActionForApplication()
collectChangesFromServer
method, displayed as a Refresh action, which is dispatched directly to the
EOApplication object at the top of the controller hierarchy.collectChangesFromServer
methodRefreshActionPriority
public static EOAction standardRemoveActionForControllerHierarchy()
remove
method which is dispatched in the controller hierarchy.remove
methodDeleteActionPriority
public static EOAction standardRevertActionForControllerHierarchy()
revert
method which is dispatched in the controller hierarchy.revert
methodRevertActionPriority
public static EOAction standardSaveActionForControllerHierarchy()
save
method which is dispatched in the controller hierarchy.save
methodSaveActionPriority
public static EOAction standardSaveAllActionForApplication()
saveAll
method, which is dispatched directly to the EOApplication object at the
top of the controller hierarchy.saveAll
methodSaveAllActionPriority
public static EOAction standardSaveAsActionForControllerHierarchy()
saveAs
method which is dispatched in the controller hierarchy.saveAs
methodSaveAsActionPriority
public static EOAction standardSelectActionForControllerHierarchy()
select
method which is dispatched in the controller hierarchy.select
methodInsertActionPriority
public static EOAction standardUndoActionForControllerHierarchy()
undo
method which is dispatched in the controller hierarchy.undo
methodUndoActionPriority
public String toString()
toString
in class Object
public String toolTip()
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |