Package apps.plaf.macosx
Class Jdk9Application
- java.lang.Object
-
- apps.plaf.macosx.Application
-
- apps.plaf.macosx.Jdk9Application
-
class Jdk9Application extends Application
Wrapper for Apple provided extensions to Java that allow Java apps to feel more "Mac-like" on Mac OS X for JDK 9.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:
Application
-
-
Constructor Summary
Constructors Constructor Description Jdk9Application()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAboutHandler(AboutHandler handler)
void
setPreferencesHandler(PreferencesHandler handler)
void
setQuitHandler(QuitHandler handler)
-
Methods inherited from class apps.plaf.macosx.Application
getApplication
-
-
-
-
Constructor Detail
-
Jdk9Application
Jdk9Application()
-
-
Method Detail
-
setAboutHandler
public void setAboutHandler(AboutHandler handler)
- Specified by:
setAboutHandler
in classApplication
-
setPreferencesHandler
public void setPreferencesHandler(PreferencesHandler handler)
- Specified by:
setPreferencesHandler
in classApplication
-
setQuitHandler
public void setQuitHandler(QuitHandler handler)
- Specified by:
setQuitHandler
in classApplication
-
-