com.vaadin.ui
Interface JavaScriptCallback

All Superinterfaces:
Serializable

public interface JavaScriptCallback
extends Serializable

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.

Since:
7.0.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd
See Also:
JavaScript.addCallback(String, JavaScriptCallback), AbstractJavaScriptComponent.registerCallback(String, JavaScriptCallback), AbstractJavaScriptExtension.registerCallback(String, JavaScriptCallback)

Method Summary
 void call(JSONArray arguments)
          Invoked whenever the corresponding JavaScript function is called in the browser.
 

Method Detail

call

void call(JSONArray arguments)
          throws JSONException
Invoked whenever the corresponding JavaScript function is called in the browser.

Because of the asynchronous nature of the communication between client and server, no return value can be sent back to the browser.

Parameters:
arguments - an array with JSON representations of the arguments with which the JavaScript function was called.
Throws:
JSONException - if the arguments can not be interpreted


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.