|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.apple.eawt.Application
com.darwinsys.macosui.MacOSAppAdapter
The only os-dependant part of com.darwinsys, this is the adapter class to handle MacOS's "different" way of doing About Box, Quit item in App menu, Preferences, and so on.
Constructor Summary | |
MacOSAppAdapter(javax.swing.JFrame theParent,
AboutBoxHandler about,
PrefsHandler prefs,
PrintHandler print,
ShutdownHandler shut)
Construct a MacOSAppAdapter. |
Method Summary | |
void |
register()
Method to register this handler with Apple's event manager, calling addApplicationListener in parent class. |
Methods inherited from class com.apple.eawt.Application |
addAboutMenuItem, addApplicationListener, addPreferencesMenuItem, getApplication, getEnabledAboutMenu, getEnabledPreferencesMenu, getMouseLocationOnScreen, isAboutMenuItemPresent, isPreferencesMenuItemPresent, removeAboutMenuItem, removeApplicationListener, removePreferencesMenuItem, setEnabledAboutMenu, setEnabledPreferencesMenu |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MacOSAppAdapter(javax.swing.JFrame theParent, AboutBoxHandler about, PrefsHandler prefs, PrintHandler print, ShutdownHandler shut)
theParent
- A JFrame, usually the main application window.about
- A handler for the About box.prefs
- A Preferences handler.print
- A Print handler (bug: does not get invoked now).shut
- A shutdown handlerMethod Detail |
public void register()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |