|
|||||||||||
| 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 closing (disposing).
Note that despite an objection a dialog may still be closed.
This service should be offered by all top level dialogs (e.g. windows) and intermediate dialogs that offer closing of elements (e.g. MDI dialogs).
Implementations must take care that no memory leak occours even if not all dialogs unregister.
| Nested Class Summary | |
static interface |
CloseObjectionService.CloseObjectionCallback
Callback used by CloseObjectionService. |
| Method Summary | |
boolean |
canClose(DialogInstanceId diid)
Queries the registered objection callbacks that are concerned with closing the dialog with the given diid. |
void |
registerObjectionCallback(DialogInstanceId diid,
CloseObjectionService.CloseObjectionCallback callback)
Registers a callback that is questioned before the dialog will be closed. |
void |
unregisterObjectionCallback(DialogInstanceId diid,
CloseObjectionService.CloseObjectionCallback callback)
Unregisters a callback object. |
| Method Detail |
public boolean canClose(DialogInstanceId diid)
diid - the instance id of the dialog that should be closed
true iff no registered callback has objected
public void registerObjectionCallback(DialogInstanceId diid,
CloseObjectionService.CloseObjectionCallback 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,
CloseObjectionService.CloseObjectionCallback 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 | ||||||||||