public interface SimpleLifeCycle
doActivate() doPassivate()
[initialized] -----------> [active] ------------> [passive]
<------------
doActivate()
The arguments of the doActivate(Map) and doPassivate(Map) calls may
also be used to return stuff to the caller.| Modifier and Type | Field and Description |
|---|---|
static String |
FORCE_CLOSE_KEY
Key for the parameter of the
doPassivate(Map), the value is the
optional flag (value type Boolean) which is true
if the method is called directly after a call to canPassivate(). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPassivate()
Test to check if a dialog in the active state can be moved
to the passive state.
|
void |
doActivate(Map<String,? super Object> pArgs)
Called from the dialog coordinator to tell the dialog to switch
to the active state.
|
void |
doPassivate(Map<String,? super Object> pArgs)
Called from the dialog coordinator to tell the dialog to switch
to the passive state.
|
static final String FORCE_CLOSE_KEY
doPassivate(Map), the value is the
optional flag (value type Boolean) which is true
if the method is called directly after a call to canPassivate().
In that case, the implementation should also use the force mode for
its child dialog hierarchy (if any) to avoid duplicate calls to the
canPassivate().boolean canPassivate()
doPassivate(Map), if it returns false, it will remain in the
active state and no doPassivate(Map) call will happen.
In the call to doPassivate(Map) directly after this method returned true,
the additional value FORCE_CLOSE_KEY is passed.void doActivate(Map<String,? super Object> pArgs)
pArgs - arguments, key is a String, value is any suitable object for the keyvoid doPassivate(Map<String,? super Object> pArgs)
doActivate(Map) method.
If canPassivate() was called directly before this method, then
the parameter will contain the flag FORCE_CLOSE_KEY to indicate that
calls to the child dialog hierarchy (if any) should also use the force mode
to avoid duplicate calls to canPassivate().pArgs - arguments, key is a String, value is any suitable object for the keyCopyright © 2022 Jürgen Zeller (privat). All rights reserved.