|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Allows implementors of LifeCycle to attach to the lifecycle of the dialog.
The functionality of LifeCycleControl is an integral part of
DialogControl.
Every DialogControl is
(per inheritence) a LifeCycleControl!
Note: Order on registration is important! The lifecycle transition
notifications of LifeCycle are called
LifeCycle.prepare() and LifeCycle.activate()) andLifeCycle.deactivate() and LifeCycle.release()).
Note: If a LifeCycle is attached (using attachToLifeCycle(LifeCycle),
all required notifications of the lifecycle will be made immediately when attached!
So if the lifecycle is LifeCycleState.ACTIVE, the attached
LifeCycle's prepare() and
activate() methods will be called (in that order).
Note: A special case occures when attaching (or detaching) a LifeCycle
while currently in a lifecycle-notification (which is allowed and happens often):
The newly registered LifeCycle will be threated as registered before
the current notified LifeCycle (in foreward notifications; in a usual case it
is attached within the LifeCycle's notification method)! So the
newly attached LifeCycle has the expected state for the user.
LifeCycle,
LifeCycleState| Method Summary | |
void |
attachToLifeCycle(LifeCycle lifeCycle)
Attaches a component that is interested in the life cycle of this dialog to the notification chain. |
void |
detachFromLifeCycle(LifeCycle lifeCycle)
Detaches a component from the life cycle notification. |
| Method Detail |
public void attachToLifeCycle(LifeCycle lifeCycle)
LifeCycle implementations will be notified
of lifecycle changes in the order they have been registered for calls to
LifeCycle.prepare() and LifeCycle.activate() and in
reverse order for LifeCycle.deactivate() and LifeCycle.release().
lifeCycle - the life cycle to be notifiedpublic void detachFromLifeCycle(LifeCycle lifeCycle)
lifeCycle - the life cycle that should not be notified any more
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||