|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.validation.core.ResultInvoker
public class ResultInvoker
The ResultInvoker is used in conjunction with the
IRenderableModel
interface in order to insure that all object
instantiations and/or method invocations effecting or depending upon the
state of components in GUI occur on the UI thread appropriate for the
model. The primary task of this class is to wrap the call to
invoke
on the Reflector.Result
specified in the
constructor.
IRenderableModel.invokeOnUIThread(Runnable)
Constructor Summary | |
---|---|
ResultInvoker(Reflector.Result result)
create an invoker for the specified result |
|
ResultInvoker(Reflector.Result result,
Object receiver,
IRenderableModel model)
create an invoker for the specified result which will use the given receiver as the receiver for the method call being invoked reflectively |
Method Summary | |
---|---|
Object |
getReturnValue()
return the return value from a method invokation or object instantiated by a constructor via the invoke method |
Throwable |
getThrowable()
returns the Throwable object should an exception have occured during invokation of invoke method |
void |
run()
simply wraps the invocation of the invoke method of the
result object specified at instantiation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultInvoker(Reflector.Result result)
result
- -
reflector result to be invokedpublic ResultInvoker(Reflector.Result result, Object receiver, IRenderableModel model)
result
- -
reflector result to be invokedreceiver
- -
receiver for method invokation or null
for
constructor or static method invokationmodel
- -
IRenderableModel instance to which this appliesMethod Detail |
---|
public void run()
invoke
method of the
result object specified at instantiation
run
in interface Runnable
Reflector.Result.invoke(Object)
public Throwable getThrowable()
invoke
method
null
if no exception occuredpublic Object getReturnValue()
invoke
method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |