Package org.apache.cayenne.modeler.osx
Class OSXApplicationWrapper
- java.lang.Object
-
- org.apache.cayenne.modeler.osx.OSXApplicationWrapper
-
public class OSXApplicationWrapper extends Object
This class wraps appleApplicationclass and dynamically proxying it's lifecycle handlers setup.This code exists to support both Java 8 and 9, as handler interfaces where incompatibly moved to other package between these versions.
See JDK-8160437 issue for details.
-
-
Constructor Summary
Constructors Constructor Description OSXApplicationWrapper(com.apple.eawt.Application application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAboutHandler(Runnable action)voidsetPreferencesHandler(Runnable action)voidsetQuitHandler(Consumer<OSXQuitResponseWrapper> action)
-
-
-
Method Detail
-
setPreferencesHandler
public void setPreferencesHandler(Runnable action)
-
setAboutHandler
public void setAboutHandler(Runnable action)
-
setQuitHandler
public void setQuitHandler(Consumer<OSXQuitResponseWrapper> action)
-
-