public class OSXAdapter extends Object implements InvocationHandler
Modifier and Type | Field and Description |
---|---|
protected String |
proxySignature |
protected Method |
targetMethod |
protected Object |
targetObject |
Modifier | Constructor and Description |
---|---|
protected |
OSXAdapter(String proxySignature,
Object target,
Method handler) |
Modifier and Type | Method and Description |
---|---|
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) |
protected Object targetObject
protected Method targetMethod
protected String proxySignature
public static void setHandler(OSXAdapter adapter)
public boolean callTarget(Object appleEvent) throws InvocationTargetException, IllegalAccessException
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
protected void setApplicationEventHandled(Object event, boolean handled)
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.