|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sptci.echo2.Confirmation.Executor<S>
public static class Confirmation.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.
| Field Summary | |
|---|---|
private ArrayList<ArrayList> |
args
The arguments to be passed to the method. |
private String |
methodName
The method that is to be executed if the user confirms the action. |
private S |
source
The source object whose methodName should be invoked after
user confirmation. |
| Constructor Summary | |
|---|---|
Confirmation.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. |
(package private) 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 |
| Field Detail |
|---|
private final S source
methodName should be invoked after
user confirmation.
private final String methodName
private ArrayList<ArrayList> args
null objects.
| Constructor Detail |
|---|
public Confirmation.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 valuevoid execute()
methodName on the source with the
args parameters.
ReflectionUtility.fetchMethod( Object, String, Class[] )
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||