Package org.pepsoft.util
Class MacUtils
java.lang.Object
org.pepsoft.util.MacUtils
Utility methods for integrating into the Mac OS X desktop environment.
Created by pepijn on 16-04-15.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic booleaninstallAboutHandler(MacUtils.AboutHandler aboutHandler) When the user requests to view the About screen, invokes the specified handler on the event dispatch thread.static booleaninstallOpenFilesHandler(MacUtils.OpenFilesHandler openFilesHandler) When the user requests to open (a) file(s) associated with the application, invokes the specified handler on the event dispatch thread.static booleaninstallPreferencesHandler(MacUtils.PreferencesHandler preferencesHandler) static booleaninstallQuitHandler(MacUtils.QuitHandler quitHandler) When the user requests to quit the application, invokes the specified handler on the event dispatch thread and allows the quit to proceed if it returnstrueor cancels it otherwise.
-
Method Details
-
installQuitHandler
When the user requests to quit the application, invokes the specified handler on the event dispatch thread and allows the quit to proceed if it returnstrueor cancels it otherwise.- Parameters:
quitHandler- The handler to invoke.- Returns:
trueif the handler was successfully installed;falseif the Apple Java extensions cannot be found or are too old.
-
installAboutHandler
When the user requests to view the About screen, invokes the specified handler on the event dispatch thread.- Parameters:
aboutHandler- The handler to invoke.- Returns:
trueif the handler was successfully installed;falseif the Apple Java extensions cannot be found or are too old.
-
installOpenFilesHandler
When the user requests to open (a) file(s) associated with the application, invokes the specified handler on the event dispatch thread.- Parameters:
openFilesHandler- The handler to invoke.- Returns:
trueif the handler was successfully installed;falseif the Apple Java extensions cannot be found or are too old.
-
installPreferencesHandler
-