|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.AbstractFeature
com.sdm.quasar.client.core.dialogbase.features.DialogCreationFeature
The DialogCreationFeature may be used to create simple main dialogs
i.e. subdialogs of the session, when the session has no own dielog.
You can use it as well as example for creating subdialogs in own frames.
For emdedded dialogs you need to use different ActivationController.
| Constructor Summary | |
DialogCreationFeature()
Creates a new DialogCreationFeature. |
|
| Method Summary | |
boolean |
canCreateDialog(java.lang.String dialogId)
Tests, whether the dialog with the given id can be created. |
protected SubDialogControl |
checkForSingleton(java.lang.String dialogId,
java.lang.Object context,
DeactivationCallback deactivationCallback)
Checks if the requested dialog is a singleton dialog and if true serves the simngleton instance. |
DialogInstanceId |
createDialog(java.lang.String dialogId,
java.lang.Object context)
Creates a new independent dialog. |
DialogInstanceId |
createDialog(java.lang.String dialogId,
java.lang.Object context,
DeactivationCallback deactivationCallback)
Creates a new independent dialog. |
protected SubDialogControl |
createDialogInternal(java.lang.String dialogId,
java.lang.Object context,
DeactivationCallback deactivationCallback)
|
protected void |
dispose()
Called when the feature or dialog is disposed. |
protected RootControllerFeature |
getRootControllerFeature()
|
protected SubDialogControl |
getSingletonDialog(java.lang.String dialogId,
java.lang.Object context,
DeactivationCallback deactivationCallback)
The method provides a singleton dialog: If the dialog is created once its singleton dialog instance will provided as long as it is not disposed. |
protected void |
init()
Called when the feature is initializing. |
| Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature |
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized, prepare, release |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DialogCreationFeature()
DialogCreationFeature.
| Method Detail |
protected void init()
AbstractFeatureDialogControl installed to. To access the
DialogControl use the AbstractFeature.getDialogControl() method.
Override this method to perform some action on initialization e.g. register public services.
init in class AbstractFeatureAbstractFeature.init()
protected void dispose()
throws DisposeException
AbstractFeature
dispose in class AbstractFeatureDisposeExceptioncom.sdm.quasar.client.core.dialog.features.AbstractFeature#dispose()protected RootControllerFeature getRootControllerFeature()
public boolean canCreateDialog(java.lang.String dialogId)
DialogCreationService
canCreateDialog in interface DialogCreationServicedialogId - Id of the dialog to be created
DialogCreationService.canCreateDialog(java.lang.String)
public DialogInstanceId createDialog(java.lang.String dialogId,
java.lang.Object context)
DialogCreationService
createDialog in interface DialogCreationServicedialogId - Id of the dialog to be createdcontext - Context information for the new dialog (may be null)
DialogCreationService.createDialog(java.lang.String, java.lang.Object)
public DialogInstanceId createDialog(java.lang.String dialogId,
java.lang.Object context,
DeactivationCallback deactivationCallback)
DialogCreationServiceDeactivationCallback is registrated.
createDialog in interface DialogCreationServicedialogId - Id of the dialog to be createdcontext - Context information for the new dialog (may be null)deactivationCallback - The callback will be noticed when the created dialog ist deactivated (may be null)
DialogCreationService.createDialog(java.lang.String, java.lang.Object, DeactivationCallback)
protected SubDialogControl createDialogInternal(java.lang.String dialogId,
java.lang.Object context,
DeactivationCallback deactivationCallback)
DialogCreationService.createDialog(java.lang.String, java.lang.Object, DeactivationCallback)
protected SubDialogControl checkForSingleton(java.lang.String dialogId,
java.lang.Object context,
DeactivationCallback deactivationCallback)
dialogId - Id of the singleton dialogcontext - Context information for the new dialog (may be null)deactivationCallback - The callback will be noticed when the created dialog ist deactivated (may be null)
protected SubDialogControl getSingletonDialog(java.lang.String dialogId,
java.lang.Object context,
DeactivationCallback deactivationCallback)
dialogId - Id of the singleton dialogcontext - Context information for the new dialog (may be null)deactivationCallback - The callback will be noticed when the created dialog ist deactivated (may be null)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||