|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for adding tasks to a task view for a system component.
A TasksManager
implementation provides lists of tasks
to a user interface, without knowing or caring how the user interface
is implemented. It is also responsible for performing the tasks
requested by the user.
User interface assumptions:
TasksManager
implementations may
register their desire to define tasks for a given system component.
An implementation should never assume that it is the only entity
which is supplying tasks.
TasksManager
implementation
will always be able to determine where it should display itself
relative to its owner, independent of the UI platform.
TaskDescriptor
Field Summary | |
static int |
CASCADING_TASKS
Indicates that cascading tasks are requested. |
static int |
CUSTOM_TASKS
Indicates that custom tasks are requested. |
static int |
RELATED_TASKS
Indicates that related tasks are requested. |
Method Summary | |
void |
initialize(ObjectName objectName)
Identifies the object with which a system component may wish to associate one or more tasks. |
TaskDescriptor[] |
queryTasks(int flags,
java.lang.String verb)
Returns a list of tasks which are applicable to the specified object. |
void |
taskSelected(int task,
java.awt.Frame owner)
Informs the TasksManager implementation that a particular
task has been selected by the user. |
Field Detail |
public static final int CUSTOM_TASKS
public static final int CASCADING_TASKS
public static final int RELATED_TASKS
Method Detail |
public void initialize(ObjectName objectName)
objectNames
- an object name.ObjectName
public TaskDescriptor[] queryTasks(int flags, java.lang.String verb)
flags
- constants which indicates the type of tasks requested.verb
- A language-independent verb which identifies the main task
to which this TasksManager
should add cascading tasks. If the
CASCADING_TASKS
flag is not set this parameter will be null
.queryTasks
should
return null
or an array of zero elements.TaskDescriptor
public void taskSelected(int task, java.awt.Frame owner)
TasksManager
implementation that a particular
task has been selected by the user.
The implementation should respond to the request by displaying a
UI panel that lets the user perform the designated task.task
- the identifier of the task specified in the
TaskDescriptor
that was returned by queryTasks
.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 |