Class awtExt.Callback
All Packages Class Hierarchy This Package Previous Next Index
Class awtExt.Callback
java.lang.Object
|
+----awtExt.Callback
- public class Callback
- extends Object
Utility class for generating a methodReference to a method which is
invoked from the awtExt package. The method called back MUST
take a CallbackInfo object as a parameter, and have a signature of the form:
public void calledbackMethod( CallbackInfo cbi );
The class that the method belongs to must
be declared public as well.
- See Also:
- methodRef
-
Callback()
-
-
newRef(String, String, String)
- Creates a GUI callback to a specific method.
-
newRef(Object, String)
- newRef() - Convenience method.
Callback
public Callback()
newRef
public static methodRef newRef(String packageString,
String classString,
String methodString) throws InvalidMethodRefException
- Creates a GUI callback to a specific method.
The called back method *must* have a specific signature, i.e
must take a parameter of class CallbackInfo and return void.
- Parameters:
- packageString - package of target object
- classString - class of target object
- methodString - string representation of method
to make a reference to ..
- Returns:
- reference to method
- Throws: InvalidMethodRefException
- If generation of methodRef fails for any reason
newRef
public static methodRef newRef(Object targetObj,
String method) throws InvalidMethodRefException
- newRef() - Convenience method. The target class is extracted
from the targetObj, and the target object is then set to targetObj.
- Parameters:
- targetObj - package and class string are extracted from
it. The target object is then set to this.
- method - string representation of method to make
reference to.
- Returns:
- reference to method
- Throws: InvalidMethodRefException
- If generation of methodRef fails for any reason
- See Also:
- methodRef
All Packages Class Hierarchy This Package Previous Next Index