Package org.jdesktop.application
Interface Application.ExitListener
-
- All Superinterfaces:
java.util.EventListener
- Enclosing class:
- Application
public static interface Application.ExitListener extends java.util.EventListenerGive the Application a chance to veto an attempt to exit/quit. AnExitListener'scanExitmethod should return false if there are pending decisions that the user must make before the app exits. A typicalExitListenerwould prompt the user with a modal dialog.The
eventObjectargument will be the the value passed toexit(). It may be null.The
willExitmethod is called after the exit has been confirmed. An ExitListener that's going to perform some cleanup work should do so inwillExit.ExitListenersrun on the event dispatching thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanExit(java.util.EventObject event)voidwillExit(java.util.EventObject event)
-