|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Application.ExitListener
Give the Application a chance to veto an attempt to exit/quit.
An ExitListener's
canExit
method should return
false if there are pending decisions that the user must make
before the app exits. A typical ExitListener
would
prompt the user with a modal dialog.
The eventObject
argument will be the the value passed
to exit()
. It may be null.
The willExit
method is called after the exit has
been confirmed. An ExitListener that's going to perform
some cleanup work should do so in willExit
.
ExitListeners
run on the event dispatching thread.
Application.exit(EventObject)
,
Application.addExitListener(org.jdesktop.application.Application.ExitListener)
,
Application.removeExitListener(org.jdesktop.application.Application.ExitListener)
Method Summary | |
---|---|
boolean |
canExit(java.util.EventObject event)
|
void |
willExit(java.util.EventObject event)
|
Method Detail |
---|
boolean canExit(java.util.EventObject event)
void willExit(java.util.EventObject event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |