|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Represents the life cycle within a dialog.
If you want to implement a dialog that conforms to the life cycle defined here
you should implement LifeCycle and register the implementation with the
com.sdm.quasar.client.comp.dlgdef.lifecyclectrl.DialogControl.
Note: This is a life cycle interface and thus the methods should
never be called directly. Use the
com.sdm.quasar.client.comp.dlgdef.lifecyclectrl.SubDialogControl instead that you
have obtained when creating a sub dialog using
com.sdm.quasar.client.comp.dlgdef.lifecyclectrl.DialogControl.
The dialog is in one of the following states:
It reacts to the following life cycle transitions, while executing a lifecycle transition, the dialog is in a transition state as stated as follos:prepare() - dialog is in state LifeCycleState.PREPARINGactivate() - dialog is in state LifeCycleState.ACTIVATINGdeactivate() - dialog is in state LifeCycleState.DEACTIVATINGrelease() - dialog is in state LifeCycleState.RELEASINGDisposable.dispose() - dialog is in state LifeCycleState.DISPOSINGDisposable.dispose() may be called in
any state and the implementation is expected to behave correctly.
| Method Summary | |
void |
activate()
Transition from state LifeCycleState.PREPARED to state
LifeCycleState.ACTIVE.
|
void |
deactivate()
Transition from state LifeCycleState.ACTIVE to state
LifeCycleState.PREPARED.
|
void |
prepare()
Transition from state LifeCycleState.CREATED to state
LifeCycleState.PREPARED.
|
void |
release()
Transition from state LifeCycleState.PREPARED to
LifeCycleState.CREATED.
|
| Methods inherited from interface com.sdm.quasar.client.core.common.Disposable |
dispose |
| Method Detail |
public void prepare()
LifeCycleState.CREATED to state
LifeCycleState.PREPARED.
While executed, the state is LifeCycleState.PREPARING.
The implementation should allocate temporary resources and initialize the dialog's visual representation. Services offered to children should be registered. It relies on the parent dialog to be prepared!
public void activate()
LifeCycleState.PREPARED to state
LifeCycleState.ACTIVE.
While executed, the state is LifeCycleState.ACTIVATING.
The implementation should activate its visual representation (e.g. allow ui events, start animation, show the window if the dialog owns a window). It relies on the parent dialog to be activated!
public void deactivate()
LifeCycleState.ACTIVE to state
LifeCycleState.PREPARED.
While executed, the state is LifeCycleState.DEACTIVATING.
The implementation should deactivate its visual representation (e.g. disable ui events, stop animation, hide the window if the dialog owns a window).
Note that the call to this method is not negotiable. If you want to allow
for user interaction before a dialog is deactivated, you should use the
ActivationObjectionService.
public void release()
LifeCycleState.PREPARED to
LifeCycleState.CREATED.
While executed, the state is LifeCycleState.RELEASING.
The implementation should free temporary resources and may dispose of its visual representation. Any services offered should be withdrawn.
Note that the call to this method is not negotiable.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||