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

Constructor Index

 o Callback()

Method Index

 o newRef(String, String, String)
Creates a GUI callback to a specific method.
 o newRef(Object, String)
newRef() - Convenience method.

Constructors

 o Callback
  public Callback()

Methods

 o 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
 o 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