|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaScriptFunction
Defines a method that is called by a client-side JavaScript function. When
the corresponding JavaScript function is called, the call(JSONArray)
method is invoked.
JavaScript#addFunction(String, JavaScriptCallback)
,
AbstractJavaScriptComponent#addFunction(String, JavaScriptCallback)
,
AbstractJavaScriptExtension#addFunction(String, JavaScriptCallback)
Method Summary | |
---|---|
void |
call(org.json.JSONArray arguments)
Invoked whenever the corresponding JavaScript function is called in the browser. |
Method Detail |
---|
void call(org.json.JSONArray arguments) throws org.json.JSONException
Because of the asynchronous nature of the communication between client and server, no return value can be sent back to the browser.
arguments
- an array with JSON representations of the arguments with which
the JavaScript function was called.
org.json.JSONException
- if the arguments can not be interpreted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |