com.vaadin.ui.
Interface JavaScriptFunction
-
All Superinterfaces:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface JavaScriptFunction 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
Author:
Vaadin Ltd
See Also:
JavaScript.addFunction(String, JavaScriptFunction)
,AbstractJavaScriptComponent.addFunction(String, JavaScriptFunction)
,AbstractJavaScriptExtension.addFunction(String, JavaScriptFunction)
-
-
Method Summary
All Methods Modifier and Type Method Description void
call(elemental.json.JsonArray arguments)
Invoked whenever the corresponding JavaScript function is called in the browser.
-
-
-
Method Detail
-
call
void call(elemental.json.JsonArray arguments)
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.
-
-