|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.core.ui.frameworks.taskwizard.TasksManager
public class TasksManager
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 task
java.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 deregistered
java.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 wizard
java.lang.IllegalArgumentException
- if WizardID is nullpublic ITask getTask(java.lang.String sTaskID)
sTaskID
- The ID uniquely identifying the task to be obtained
public java.lang.String[] getTasksForWizard(java.lang.String sWizardID)
sWizardID
- The ID uniquely identifying the wizard whose tasks are to be
returned
public 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 removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |