NASA World Wind

gov.nasa.worldwind.applications.sar
Class OSXAdapter

java.lang.Object
  extended by gov.nasa.worldwind.applications.sar.OSXAdapter
All Implemented Interfaces:
InvocationHandler

public class OSXAdapter
extends Object
implements InvocationHandler


Field Summary
protected  String proxySignature
           
protected  Method targetMethod
           
protected  Object targetObject
           
 
Constructor Summary
protected OSXAdapter(String proxySignature, Object target, Method handler)
           
 
Method Summary
 boolean callTarget(Object appleEvent)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
protected  boolean isCorrectMethod(Method method, Object[] args)
           
static void setAboutHandler(Object target, Method aboutHandler)
           
protected  void setApplicationEventHandled(Object event, boolean handled)
           
static void setFileHandler(Object target, Method fileHandler)
           
static void setHandler(OSXAdapter adapter)
           
static void setPreferencesHandler(Object target, Method prefsHandler)
           
static void setQuitHandler(Object target, Method quitHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxySignature

protected String proxySignature

targetMethod

protected Method targetMethod

targetObject

protected Object targetObject
Constructor Detail

OSXAdapter

protected OSXAdapter(String proxySignature,
                     Object target,
                     Method handler)
Method Detail

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)

NASA World Wind