All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.util.browser.ActionInvoker

java.lang.Object
   |
   +----semper.util.browser.ActionInvoker

public class ActionInvoker
extends Object

Variable Index

 o argc
 o args
 o cl
 o m
 o target

Constructor Index

 o ActionInvoker(Object)
Creates an ActionInvoker for the specific Object
 o ActionInvoker(Object, int)
Creates an ActionInvoker for the specific Object

Method Index

 o actionPerformed(String)
Dynamic invokation of the method
 o setArgument(Object, Class, int)
Set the the Object and the Class of a method's argument

Variables

 o target
 protected Object target
 o cl
 protected Class cl[]
 o args
 protected Object args[]
 o argc
 protected int argc
 o m
 protected Method m

Constructors

 o ActionInvoker
 public ActionInvoker(Object target)
Creates an ActionInvoker for the specific Object

Parameters:
target - the Object a method of which we want to invoke
 o ActionInvoker
 public ActionInvoker(Object target,
                      int argc)
Creates an ActionInvoker for the specific Object

Parameters:
target - the Object a method of which we want to invoke
argc - the number of the method's arguments

Methods

 o setArgument
 public void setArgument(Object obj,
                         Class c,
                         int i)
Set the the Object and the Class of a method's argument

Parameters:
obj - the Object
c - the class of the argument
i - justifies the position of the argument among the others
 o actionPerformed
 public Object actionPerformed(String methodname) throws NoSuchMethodException, InstantiationException, IllegalAccessException
Dynamic invokation of the method

Parameters:
methodname - the name of the method
Returns:
the Object that is returned by the invoked method
Throws: NoSuchMethodException
if the specified method does not exist in the specified class
Throws: InstantiationException
if it has been an attempt to instantiate an interface or an abstract class
Throws: IllegalAccessException
if the specified class is not accessible

All Packages  Class Hierarchy  This Package  Previous  Next  Index