Package com.vaadin.client.flow
Class ExecuteJavaScriptProcessor
- java.lang.Object
-
- com.vaadin.client.flow.ExecuteJavaScriptProcessor
-
public class ExecuteJavaScriptProcessor extends Object
Processes the result ofPage.executeJs(String, java.io.Serializable...)on the client.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description ExecuteJavaScriptProcessor(Registry registry)Creates a new processor with the given registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(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 booleanisBound(StateNode node)
-
-
-
Constructor Detail
-
ExecuteJavaScriptProcessor
public ExecuteJavaScriptProcessor(Registry registry)
Creates a new processor with the given registry.- Parameters:
registry- the registry to use
-
-
Method Detail
-
execute
public void execute(elemental.json.JsonArray invocations)
Executes invocations received from the server.- Parameters:
invocations- a JSON containing invocation data
-
isBound
protected boolean isBound(StateNode node)
-
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
-
-