|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Manages the dialogs of a session.
DialogManager is responsible for
#createDialog(String, DialogServiceManager, Object))
hasDialog(DialogInstanceId))
canCreateDialog(String))
DialogInstanceIds within a session.
LifeCycle)
The following rules describe the dependencies of the life cycle states along the hierarchy of dialogs.
com.sdm.quasar.client.comp.dlgdef.Dialog| Method Summary | |
boolean |
canCreateDialog(java.lang.String dialogId)
Tests, whether the dialog with the given id can be created by this dialog manager. |
void |
collectSystemInfo(ID id,
SystemInfoNode root,
SystemInfoOptions options)
Builds the system information tree upon local information of the implementor about the dialog with the ID given. |
DialogInstance |
createDialog(java.lang.String dialogId,
DialogInstanceId lifeCycleParentDiid,
java.lang.Object context)
Creates a dependent dialog. |
DialogInstance |
createRootDialog(DialogInstanceId rootDialogInstanceId,
java.lang.Object context)
Creates the root dialog instance. |
DialogInstanceId |
createRootDialogInstanceId()
Creates a root dialog id. |
void |
disposeDialog(DialogInstanceId diid)
Disposes a dialog by calling com.sdm.quasar.client.comp.dlgdef.Dialog#dispose().
|
LifeCycleState |
getLifeCycleState(ID id)
Returns a LifeCycleState for the given id. |
boolean |
hasDialog(DialogInstanceId diid)
Tests, whether a dialog with a given instance id exists. |
| Methods inherited from interface com.sdm.quasar.client.core.common.Disposable |
dispose |
| Methods inherited from interface com.sdm.quasar.client.core.dialog.lifecycle.LifeCycleListenerSupport |
addLifeCycleListener, removeLifeCycleListener |
| Method Detail |
public boolean canCreateDialog(java.lang.String dialogId)
dialogId - the id of the dialog
public DialogInstanceId createRootDialogInstanceId()
Note: This is the first step in creating a root dialog node.
A call to #createRootDialog(DialogInstanceId, DialogServiceManager, Object)
should follow to finish creation of a root dialog.
DialogInstanceId for the root dialog, that will be
created later by calling #createRootDialog(DialogInstanceId, DialogServiceManager, Object).
public DialogInstance createRootDialog(DialogInstanceId rootDialogInstanceId,
java.lang.Object context)
throws DialogException
Note: This is the second step in creating a root dialog node.
The given rootDialogInstanceId must already exist.
To create a root id use #createRootDialogInstanceId(String)
in advance.
context - the dialog context object, used as initialization parameter by the dialog
java.lang.IllegalArgumentException - if the dialog id is unknown
DialogException - if the dialog could not be created due to an error in configuration or dialog implementation.
public DialogInstance createDialog(java.lang.String dialogId,
DialogInstanceId lifeCycleParentDiid,
java.lang.Object context)
throws DialogException
The dialog will be disposed automatically before its parent dialog is disposed.
dialogId - the id of the dialog to be createdlifeCycleParentDiid - the dialog instance id of the parentcontext - the dialog context object, used as initialization parameter by the dialog
java.lang.IllegalArgumentException - if the dialog id is unknown
java.lang.IllegalArgumentException - if the parent id is unknown
DialogException - if the dialog could not be created
due to an error in configuration or dialog implementation.
public void disposeDialog(DialogInstanceId diid)
throws DialogException
com.sdm.quasar.client.comp.dlgdef.Dialog#dispose().
Note: The implementation must not return before the dialog is disposed. Any threads or asynchronous calls started must be completed before this method returns.
diid - diid the dialog instance id of the dialog to be disposed
java.lang.IllegalArgumentException - if the dialog instance id is unknown
DialogException - if the dialog could not be correctly disposed due to an error in the dialog implementation.public boolean hasDialog(DialogInstanceId diid)
diid - diid the dialog instance id to be tested
public LifeCycleState getLifeCycleState(ID id)
LifeCycleState for the given id. If the id is a known
dialog instance id, the returned state is equal to the state of the acssociated
dialog instance. Additionally this method assures, that for any
other id given, a valid LifeCycleState is returned.
id - the id to get a LifeCycleState for
LifeCycleState for the id
public void collectSystemInfo(ID id,
SystemInfoNode root,
SystemInfoOptions options)
ID given.
id - the ID to append system information to the node givenroot - the SystemInfoNode to add information to (guaranteed to be not null)options - contains additional options, that might influence the amount of
information added to the tree (guaranteed to be not null)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||