|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.Executor<S>
S - The class name of the source object that spawned this view.public class Executor<S>
The executor used to execute the desired action after user
confirmation. You must use the addParameter(java.lang.Class, java.lang.Object) method
if the method you specified requires parameters.
Copyright 2006 Sans Pareil Technologies, Inc.
| Constructor Summary | |
|---|---|
Executor(S source,
String methodName)
Create a new instance of the class with the specified parameters |
|
| Method Summary | |
|---|---|
void |
addParameter(Class cls,
Object object)
Add the specified source and class combination to args. |
void |
execute()
Execute the methodName on the source with the
args parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Executor(S source,
String methodName)
source - The source to set.methodName - The methodName to set.| Method Detail |
|---|
public void addParameter(Class cls,
Object object)
args.
This method should be invoked as many times are required by
specifying the class and object parameters in the same order
required to execute methodName.
cls - The class of the parameterobject - The parameter valuepublic void execute()
methodName on the source with the
args parameters.
ReflectionUtility.fetchMethod( Object, String, Class[] )
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||