com.vaadin.flow.component.internal.
Class UIInternals.JavaScriptInvocation
- java.lang.Object
-
- com.vaadin.flow.component.internal.UIInternals.JavaScriptInvocation
-
All Implemented Interfaces:
Enclosing class:
public static class UIInternals.JavaScriptInvocation extends Object implements Serializable
A
Page.executeJavaScript(String, Serializable...)
invocation that has not yet been sent to the client.See Also:
-
-
Constructor Summary
Constructors Constructor and Description JavaScriptInvocation(String expression, Serializable... parameters)
Creates a new invocation.
JavaScriptInvocation(String expression, StateNode owner, Serializable... parameters)
Creates a new invocation.
-
Method Summary
All Methods Modifier and Type Method and Description String
getExpression()
Gets the JavaScript expression to invoke.
Optional<StateNode>
getOwner()
Gets the state node that this invocation belongs to, if any.
List<Object>
getParameters()
Gets the parameters to use when invoking the script.
-
-
-
Constructor Detail
-
JavaScriptInvocation
public JavaScriptInvocation(String expression, Serializable... parameters)
Creates a new invocation.
Parameters:
expression
- the expression to invokeparameters
- a list of parameters to use when invoking the script
-
JavaScriptInvocation
public JavaScriptInvocation(String expression, StateNode owner, Serializable... parameters)
Creates a new invocation.
Parameters:
expression
- the expression to invokeowner
- the state node that this invocation belongs toparameters
- a list of parameters to use when invoking the script
-
-
Method Detail
-
getOwner
public Optional<StateNode> getOwner()
Gets the state node that this invocation belongs to, if any.
Returns:
the optional owner state node, or an empty optional if no state node has been provided for this invocation.
-
getExpression
public String getExpression()
Gets the JavaScript expression to invoke.
Returns:
the JavaScript expression
-
-