Package com.vaadin.client.flow
Class ExecuteJavaScriptProcessor
java.lang.Object
com.vaadin.client.flow.ExecuteJavaScriptProcessor
Processes the result of
Page.executeJs(String, java.io.Serializable...) on the client.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
Constructor Summary
ConstructorsConstructorDescriptionExecuteJavaScriptProcessor(Registry registry) Creates a new processor with the given registry. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(elemental.json.JsonArray invocations) Executes invocations received from the server.protected voidinvoke(String[] parameterNamesAndCode, JsArray<Object> parameters, JsMap<Object, StateNode> nodeParameters) Executes the actual invocation.protected boolean
-
Constructor Details
-
ExecuteJavaScriptProcessor
Creates a new processor with the given registry.- Parameters:
registry- the registry to use
-
-
Method Details
-
execute
public void execute(elemental.json.JsonArray invocations) Executes invocations received from the server.- Parameters:
invocations- a JSON containing invocation data
-
isBound
-
invoke
protected void invoke(String[] parameterNamesAndCode, JsArray<Object> parameters, JsMap<Object, StateNode> nodeParameters) Executes the actual invocation. This method is protected instead of private for testing purposes.- Parameters:
parameterNamesAndCode- an array consisting of parameter names followed by the JavaScript expression to executeparameters- an array of parameter valuesnodeParameters- the node parameters
-