org.browsecode.helpers.menus
Class OSXAdapter
java.lang.Object
com.apple.eawt.ApplicationAdapter
org.browsecode.helpers.menus.OSXAdapter
- All Implemented Interfaces:
- com.apple.eawt.ApplicationListener, java.util.EventListener
public class OSXAdapter
- extends com.apple.eawt.ApplicationAdapter
Based slightly on Apple's OSXAdapters -- comments copied, static variables copied, everything else rewritten from scratch.
Methods inherited from class com.apple.eawt.ApplicationAdapter |
handleOpenApplication, handleOpenFile, handlePrintFile, handleReOpenApplication |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSXAdapter
public OSXAdapter()
handleAbout
public void handleAbout(com.apple.eawt.ApplicationEvent ae)
- Specified by:
handleAbout
in interface com.apple.eawt.ApplicationListener
- Overrides:
handleAbout
in class com.apple.eawt.ApplicationAdapter
handlePreferences
public void handlePreferences(com.apple.eawt.ApplicationEvent ae)
- Specified by:
handlePreferences
in interface com.apple.eawt.ApplicationListener
- Overrides:
handlePreferences
in class com.apple.eawt.ApplicationAdapter
handleQuit
public void handleQuit(com.apple.eawt.ApplicationEvent ae)
- Specified by:
handleQuit
in interface com.apple.eawt.ApplicationListener
- Overrides:
handleQuit
in class com.apple.eawt.ApplicationAdapter
addPrefsListener
public static void addPrefsListener(MenuItemAppleOSX listener)
addQuitListener
public static void addQuitListener(MenuItemAppleOSX listener)
addAboutListener
public static void addAboutListener(MenuItemAppleOSX listener)