edu.wisc.ssec.mcidasv
Class OSXAdapter
java.lang.Object
edu.wisc.ssec.mcidasv.OSXAdapter
- All Implemented Interfaces:
- InvocationHandler
public class OSXAdapter
- extends Object
- implements InvocationHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetObject
protected Object targetObject
targetMethod
protected Method targetMethod
proxySignature
protected String proxySignature
macOSXApplication
static Object macOSXApplication
OSXAdapter
protected OSXAdapter(String proxySignature,
Object target,
Method handler)
setQuitHandler
public static void setQuitHandler(Object target,
Method quitHandler)
setAboutHandler
public static void setAboutHandler(Object target,
Method aboutHandler)
setPreferencesHandler
public static void setPreferencesHandler(Object target,
Method prefsHandler)
setFileHandler
public static void setFileHandler(Object target,
Method fileHandler)
setHandler
public static void setHandler(OSXAdapter adapter)
callTarget
public boolean callTarget(Object appleEvent)
throws InvocationTargetException,
IllegalAccessException
- Throws:
InvocationTargetException
IllegalAccessException
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
isCorrectMethod
protected boolean isCorrectMethod(Method method,
Object[] args)
setApplicationEventHandled
protected void setApplicationEventHandled(Object event,
boolean handled)