Class ExecuteJavaScriptProcessor

java.lang.Object
com.vaadin.client.flow.ExecuteJavaScriptProcessor

public class ExecuteJavaScriptProcessor extends Object
Processes the result of Page.executeJs(String, java.io.Serializable...) on the client.
Since:
1.0
Author:
Vaadin Ltd
  • Constructor Details

    • ExecuteJavaScriptProcessor

      public ExecuteJavaScriptProcessor(Registry registry)
      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

      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 execute
      parameters - an array of parameter values
      nodeParameters - the node parameters