public class TasksManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addRegistrationListener(IRegistrationListener listener)
Adds a listener to be notified of registration events.
|
void |
deregisterTask(java.lang.String sTaskID)
This method removes a registered task from the TasksManager.
|
ITask |
getTask(java.lang.String sTaskID)
Returns the ITask instance registered with the specified ID.
|
java.lang.String[] |
getTasksForWizard(java.lang.String sWizardID)
Returns the tasks (in the correct order) registered for use with the
specified wizard.
|
static TasksManager |
instance()
This method returns the instance of TasksManager.
|
boolean |
isRegistered(java.lang.String sTaskID)
Returns whether or not a task has been registered with the specified ID.
|
void |
registerTask(java.lang.String sTaskID,
ITask task)
This method registers a task with the TasksManager.
|
void |
registerWizard(java.lang.String sWizardID,
java.lang.String sTasks,
java.lang.String sPosition)
This method registers a wizard with the TasksManager.
|
void |
removeRegistrationListener(IRegistrationListener listener)
Removes a registered listener.
|
public static TasksManager instance()
public void registerTask(java.lang.String sTaskID, ITask task) throws java.lang.IllegalArgumentException
sTaskID
- The unique identifier with which the task is to be registeredtask
- The ITask instance that represents the Wizard UI for the taskjava.lang.IllegalArgumentException
- if taskID is not unique or if task argument is nullpublic void deregisterTask(java.lang.String sTaskID) throws java.lang.IllegalArgumentException
sTaskID
- The unique identifier of the task that is to be deregisteredjava.lang.IllegalArgumentException
- if task with specified ID is not registeredpublic void registerWizard(java.lang.String sWizardID, java.lang.String sTasks, java.lang.String sPosition) throws java.lang.IllegalArgumentException
sWizardID
- The unique identifier of the wizardsTasks
- A comma separated list of TaskIDs that specify tasks to be
automatically added to the wizard on invocationsPosition
- A TaskID before which the above list of tasks should be
inserted in the wizardjava.lang.IllegalArgumentException
- if WizardID is nullpublic ITask getTask(java.lang.String sTaskID)
sTaskID
- The ID uniquely identifying the task to be obtainedpublic java.lang.String[] getTasksForWizard(java.lang.String sWizardID)
sWizardID
- The ID uniquely identifying the wizard whose tasks are to be
returnedpublic boolean isRegistered(java.lang.String sTaskID)
sTaskID
- The ID which is to be checked.public void addRegistrationListener(IRegistrationListener listener)
listener
- Instance of IRegistrationListener that should be notified on
eventspublic void removeRegistrationListener(IRegistrationListener listener)
listener
- Instance of IRegistrationListener that should be removedCopyright © 2008 Actuate Corp. All rights reserved.