|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface SuccessCallback
This interface represents a function prototype for a successful server operation.
Server calls are made asynchronously and a callback is made
when the response is received. The default callbacks are
Script.onSuccess(Object, Value) and Script.onFailure(Object, String).
If success callback is not specified in the server call
the default callback Script.onSuccess(Object, Value) is called.
If a function matching the signature of
onSuccess(Object, Value) is given it will be called instead.
call(Object, String, String, Value, SuccessCallback, FailureCallback)| Method Summary | |
|---|---|
void |
onSuccess(Object state,
Value returnValue)
Called when a server operation has finished successfully. |
| Method Detail |
|---|
void onSuccess(Object state,
Value returnValue)
state - State object given with call(Object, String, String, Value)returnValue - the return value from server
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||