|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A control interface to control tasks of the active component to which this interface belong.
Method Summary | |
void |
addTask(Task task,
Map hints)
Adds a new task in this controller |
Object |
getTaskControl(Task task)
Returns an interface that can be used to control a task (may be null if no control is available for the task). |
Task[] |
getTasks()
Returns the tasks of the component to which this interface belongs. |
void |
removeTask(Task task)
Removes a task. |
Method Detail |
public Task[] getTasks()
public void addTask(Task task, Map hints) throws IllegalTaskException
task
- a new task.hints
- registration hints. It can contains the name of the controller
descriptor of the created component task, with the key
"taskControllerDesc"
. If no setted, use
primitiveTask
controller descriptor. null
.
IllegalTaskException
- if the task component can't be registered.public void removeTask(Task task) throws NoSuchTaskException, IllegalTaskException
task
- the task to remove.
NoSuchTaskException
- if the given task component is unknown.
IllegalTaskException
- if the given task can't be unregistered.public Object getTaskControl(Task task) throws NoSuchTaskException, IllegalTaskException
null
if no control is available for the task). The runtime
type of the interface depends on the implementation of the activity manager
and on the hints
that have been given as paremeters of the
registration method of the activity manager.
task
- a task.
null
)
NoSuchTaskException
- if the given task component is unknown.
IllegalTaskException
- if the given task is not currently registered.addTask(Task, Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |