Class UIInternals.JavaScriptInvocation
java.lang.Object
com.vaadin.flow.component.internal.UIInternals.JavaScriptInvocation
- All Implemented Interfaces:
Serializable
- Enclosing class:
UIInternals
A
Page.executeJs(String, Object...) invocation that has not yet
been sent to the client.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJavaScriptInvocation(@Nullable JsCall jsCall, String expression, Object... parameters) Creates a new invocation for the given call, whose expression and parameters the caller has already resolved.JavaScriptInvocation(String expression, Object... parameters) Creates a new invocation. -
Method Summary
Modifier and TypeMethodDescriptionGets the JavaScript expression to invoke.@Nullable JsCallGets the call that this invocation performs, for a caller that acts on the invocation instead of running its JavaScript — the client, which looks up the generated function rather than compiling the expression, and a driver of the client side that recognizes the call.Gets the parameters to use when invoking the script.
-
Constructor Details
-
JavaScriptInvocation
Creates a new invocation.- Parameters:
expression- the expression to invokeparameters- a list of parameters to use when invoking the script- Since:
- 25.0
-
JavaScriptInvocation
Creates a new invocation for the given call, whose expression and parameters the caller has already resolved.- Parameters:
jsCall- the call that this invocation performs, ornullif the invocation is plain JavaScriptexpression- the expression to invokeparameters- a list of parameters to use when invoking the script- Since:
- 25.4
-
-
Method Details
-
getExpression
Gets the JavaScript expression to invoke.- Returns:
- the JavaScript expression
-
getParameters
Gets the parameters to use when invoking the script.- Returns:
- a list of parameters to use
-
getJsCall
Gets the call that this invocation performs, for a caller that acts on the invocation instead of running its JavaScript — the client, which looks up the generated function rather than compiling the expression, and a driver of the client side that recognizes the call.- Returns:
- the call, or
nullif the invocation is plain JavaScript scheduled with an expression - Since:
- 25.4
-