|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.apple.eawt.ApplicationAdapter
jautil.platform.MacOSXQuitHandler
public final class MacOSXQuitHandler
Hooks a Mac OS X Quit event to the Java app's quit sequence. Based on the Apple DTS MacOSXAdapter example.
Method Summary | |
---|---|
void |
handleQuit(com.apple.eawt.ApplicationEvent appevt)
Accepts the Mac OS X Quit application-event, setting its "handled" status to false and calling the registered Java quitter. |
static void |
registerMacOSXQuitter(java.lang.Runnable quitter)
Singleton factory method, registering the given quitter for this JVM, assuming there has been no previous registration. |
Methods inherited from class com.apple.eawt.ApplicationAdapter |
---|
handleAbout, handleOpenApplication, handleOpenFile, handlePreferences, handlePrintFile, handleReOpenApplication |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void handleQuit(com.apple.eawt.ApplicationEvent appevt)
handleQuit
in interface com.apple.eawt.ApplicationListener
handleQuit
in class com.apple.eawt.ApplicationAdapter
public static void registerMacOSXQuitter(java.lang.Runnable quitter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |