|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface which manages user actions defined for a system object.
An ActionsManager
implementation provides lists of
user actions to a user interface, without knowing or caring how the
user interface is implemented. It is also responsible for performing
actions requested by the user.
User interface assumptions:
Delete
or Properties
, appear last.
ActionsManager
implementations may
register their desire to define actions for a given object type.
An implementation should never assume that it is the only entity
which is supplying user actions.
ActionsManager
implementation
will always be able to determine where it should display itself
relative to its owner, independent of the UI platform.
ListManager
,
DropTargetManager
Field Summary | |
static int |
CREATION_ACTIONS
Indicates that object creation actions are requested. |
static int |
CUSTOM_ACTIONS
Indicates that custom actions are requested. |
static int |
DEFAULT_ACTION
Indicates that only the default action is requested. |
static int |
MENUBAR_ACTIONS
Indicates that menubar actions are requested NOTE: THIS ACTION IS NOT CURRENTLY SUPPORTED |
static int |
OPTION_ACTIONS
Indicates that options are requested |
static int |
STANDARD_ACTIONS
Indicates that standard actions are requested. |
static int |
TOOLBAR_ACTIONS
Indicates that toolbar actions are requested NOTE: THIS ACTION IS NOT CURRENTLY SUPPORTED |
static int |
VIEW_ACTIONS
Indicates that view actions are requested. |
Method Summary | |
void |
actionSelected(int action,
java.awt.Frame owner)
Informs the ActionsManager implementation that a particular
action has been selected by the user. |
void |
initialize(ObjectName[] objectNames,
ObjectName dropTarget)
Identifies the objects in a list on which the user may wish to perform some action. |
ActionDescriptor[] |
queryActions(int flags)
Returns a list of actions which are applicable to the specified objects. |
Field Detail |
public static final int DEFAULT_ACTION
public static final int CUSTOM_ACTIONS
public static final int CREATION_ACTIONS
public static final int STANDARD_ACTIONS
public static final int OPTION_ACTIONS
public static final int TOOLBAR_ACTIONS
public static final int MENUBAR_ACTIONS
public static final int VIEW_ACTIONS
Method Detail |
public void initialize(ObjectName[] objectNames, ObjectName dropTarget)
If the user interface is displaying the list of available actions
resulting from a drag and drop operation, the dropTarget
parameter identifies the name of the target container. Otherwise,
dropTarget
will be null.
objectNames
- an array of object names.dropTarget
- the container into which the objects are being dropped (may be null).ObjectName
public ActionDescriptor[] queryActions(int flags)
flags
- the constants which indicate the type of actions requested.queryActions
should
return null
or an array of zero elements.ActionDescriptor
public void actionSelected(int action, java.awt.Frame owner)
ActionsManager
implementation that a particular
action has been selected by the user.
The implementation should respond to the request by displaying a UI panel or taking some action on behalf of the user.
action
- the identifier of the action specified in the
ActionDescriptor
that was returned by queryActions
.owner
- the frame to be specified as the owner of any dialog panels that are displayed.
This frame should be passed to any UIServices
methods that require a frame.UIServices
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |