gov.nasa.worldwind.applications.sar
Class OSXAdapter
java.lang.Object
gov.nasa.worldwind.applications.sar.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 |
proxySignature
protected String proxySignature
targetMethod
protected Method targetMethod
targetObject
protected Object targetObject
OSXAdapter
protected OSXAdapter(String proxySignature,
Object target,
Method handler)
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)
setAboutHandler
public static void setAboutHandler(Object target,
Method aboutHandler)
setApplicationEventHandled
protected void setApplicationEventHandled(Object event,
boolean handled)
setFileHandler
public static void setFileHandler(Object target,
Method fileHandler)
setHandler
public static void setHandler(OSXAdapter adapter)
setPreferencesHandler
public static void setPreferencesHandler(Object target,
Method prefsHandler)
setQuitHandler
public static void setQuitHandler(Object target,
Method quitHandler)