- java.lang.Object
-
- org.icepdf.ri.util.MacOSAdapter
-
- All Implemented Interfaces:
InvocationHandler
public class MacOSAdapter extends Object implements InvocationHandler
MacOSAdapter helps setup the viewer to look look and feel like a native macOS application.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ObjectmacOSXApplicationprotected StringproxySignatureprotected MethodtargetMethodprotected ObjecttargetObject
-
Constructor Summary
Constructors Modifier Constructor Description protectedMacOSAdapter(String proxySignature, Object target, Method handler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancallTarget(Object appleEvent)Objectinvoke(Object proxy, Method method, Object[] args)protected booleanisCorrectMethod(Method method, Object[] args)static voidsetAboutHandler(Object target, Method aboutHandler)protected voidsetApplicationEventHandled(Object event, boolean handled)static voidsetFileHandler(Object target, Method fileHandler)static voidsetHandler(MacOSAdapter adapter)static voidsetPreferencesHandler(Object target, Method prefsHandler)static voidsetQuitHandler(Object target, Method quitHandler)
-
-
-
Method Detail
-
setHandler
public static void setHandler(MacOSAdapter adapter)
-
callTarget
public boolean callTarget(Object appleEvent) throws InvocationTargetException, IllegalAccessException
-
invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
setApplicationEventHandled
protected void setApplicationEventHandled(Object event, boolean handled)
-
-