Package apps.plaf.macosx
Class Application
- java.lang.Object
-
- apps.plaf.macosx.Application
-
- Direct Known Subclasses:
Jdk9Application
public abstract class Application extends java.lang.Object
Wrapper for Apple provided extensions to Java that allow Java apps to feel more "Mac-like" on Mac OS X.NOTE All use of this class must be wrapped in a conditional test that ensures that JMRI is not running on Mac OS X or in Try-Catch blocks. The easiest test is:
A Try-Catch block will need to catchif (SystemType.isMacOSX()) { ... }
NoClassDefFoundError
Failure to use one of these methods will result in crashes.- See Also:
Jdk9Application
-
-
Constructor Summary
Constructors Constructor Description Application()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Application
getApplication()
abstract void
setAboutHandler(AboutHandler handler)
abstract void
setPreferencesHandler(PreferencesHandler handler)
abstract void
setQuitHandler(QuitHandler handler)
-
-
-
Constructor Detail
-
Application
Application()
-
-
Method Detail
-
getApplication
public static Application getApplication()
-
setAboutHandler
public abstract void setAboutHandler(AboutHandler handler)
-
setPreferencesHandler
public abstract void setPreferencesHandler(PreferencesHandler handler)
-
setQuitHandler
public abstract void setQuitHandler(QuitHandler handler)
-
-