com.darwinsys.macosui
Class MacOSAppAdapter
java.lang.Object
Application
com.darwinsys.macosui.MacOSAppAdapter
public class MacOSAppAdapter
- extends Application
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.
|
Method Summary |
void |
register()
Method to register this handler with Apple's event manager, calling
addApplicationListener in parent class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MacOSAppAdapter
public MacOSAppAdapter(javax.swing.JFrame theParent,
AboutBoxHandler about,
PrefsHandler prefs,
PrintHandler print,
ShutdownHandler shut)
- Construct a MacOSAppAdapter.
- Parameters:
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 handler
register
public void register()
- Method to register this handler with Apple's event manager, calling
addApplicationListener in parent class.
Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.