public class OSXSupport extends Object
| Constructor and Description |
|---|
OSXSupport() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addOSXHandler(String handlerClassName,
String handlerMethodName,
String handlerSetterMethodName,
Action action)
Adds an OS X handler to the application
|
static Object |
getOSXApplication()
Get an Apple eAWT Application object
|
static boolean |
hasOSXFullScreenSupport()
Mac OS X Lion full screen support was added in
Java for Mac OS X 10.7 Update 1 and 10.6 Update 6.
|
static void |
initializeMacOSX(Action aboutAction,
Action quitAction,
Action preferencesAction,
Image iconImage,
Window fullScreenableWindow)
Initializes various Mac OS X adaptations, using reflection and proxies
in order to be compilable on other platforms.
|
static boolean |
isOSX()
Determine whether we are running on MAC OS X or not
|
static boolean |
isOSXNewEAWT()
A new version of Apple's eAWT was introduced in
Java for Mac OS X 10.6 Update 3 and 10.5 Update 8.
|
public static void initializeMacOSX(Action aboutAction, Action quitAction, Action preferencesAction, Image iconImage, Window fullScreenableWindow)
aboutAction - the action to use for the About menu itemquitAction - the action to use for the Quit menu itempreferencesAction - the action to use for the Prferences menu itemiconImage - the icon image to use for the dockfullScreenableWindow - the window that should be full screen enabledpublic static void addOSXHandler(String handlerClassName, String handlerMethodName, String handlerSetterMethodName, Action action)
handlerClassName - the class name of the handler to addhandlerMethodName - the name of the method that is called on the handler when invokedhandlerSetterMethodName - the name of the method used to set the handleraction - the action to perform when the handler is invokedpublic static Object getOSXApplication()
public static boolean isOSX()
true if is running on MAC OS Xpublic static boolean isOSXNewEAWT()
public static boolean hasOSXFullScreenSupport()
Copyright © 2019. All rights reserved.