public class MacOSXAdapter
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Red (cxh) |
Red (cxh) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invoke a method.
|
static void |
setAboutMethod(Top top,
java.lang.reflect.Method aboutMethod)
Set the about menu handler for a Top window.
|
static void |
setQuitMethod(Top top,
java.lang.reflect.Method quitMethod)
Set the quit handler (Command-q) for a Top window.
|
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
proxy
- The object upon which the method is invoked.method
- The method to be invoked.args
- The arguments to the method, which must be non-null.java.lang.Throwable
- If the method does not exist or is not accessible or if
thrown while invoking the method.public static void setAboutMethod(Top top, java.lang.reflect.Method aboutMethod)
top
- the Top level window to perform the operation.aboutMethod
- The method to invoke in Top, typically
Top.about()
.public static void setQuitMethod(Top top, java.lang.reflect.Method quitMethod)
top
- the Top level window to perform the operation.quitMethod
- The method to invoke in Top, typically
Top.exit()
.