org.browsecode.helpers.menus
Class OSXAdapter

java.lang.Object
  extended by com.apple.eawt.ApplicationAdapter
      extended by 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.


Constructor Summary
OSXAdapter()
           
 
Method Summary
static void addAboutListener(MenuItemAppleOSX listener)
           
static void addPrefsListener(MenuItemAppleOSX listener)
           
static void addQuitListener(MenuItemAppleOSX listener)
           
 void handleAbout(com.apple.eawt.ApplicationEvent ae)
           
 void handlePreferences(com.apple.eawt.ApplicationEvent ae)
           
 void handleQuit(com.apple.eawt.ApplicationEvent ae)
           
 
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
 

Constructor Detail

OSXAdapter

public OSXAdapter()
Method Detail

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)