|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Allows a dialog to register itself when it might want to object against deactivation.
Note that despite an objection a dialog may still be deactivated.
This service should be offered by all top level dialogs (e.g. windows) and intermediate dialogs that offer some kind of dialog switching (e.g. a tab pane).
Implementations must take care that no memory leak occours even if not all dialogs unregister.
| Nested Class Summary | |
static interface |
ActivationObjectionService.DeactivationObjectionCallback
Callback used by ActivationObjectionService. |
| Method Summary | |
boolean |
canDeactivate(DialogInstanceId diid)
Queries the registered objection callbacks that are concerned with a deactivation of the given diid to see if any object to deactivation. |
void |
registerObjectionCallback(DialogInstanceId diid,
ActivationObjectionService.DeactivationObjectionCallback callback)
Registers a callback that is questioned before the dialog will be deactivated or released. |
void |
unregisterObjectionCallback(DialogInstanceId diid,
ActivationObjectionService.DeactivationObjectionCallback callback)
Unregisters a callback object. |
| Method Detail |
public boolean canDeactivate(DialogInstanceId diid)
diid - the instance id of the dialog that should be deactivated
public void registerObjectionCallback(DialogInstanceId diid,
ActivationObjectionService.DeactivationObjectionCallback callback)
Note that a dialog should unregister the callback when it is released.
diid - the id of the dialog instance that is concernedcallback - the callback object to be questioned
public void unregisterObjectionCallback(DialogInstanceId diid,
ActivationObjectionService.DeactivationObjectionCallback callback)
diid - the id of the dialog instance that is concernedcallback - the callback object to be removed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||