public final class ServerEventObject
extends com.google.gwt.core.client.JavaScriptObject
| Modifier | Constructor and Description |
|---|---|
protected |
ServerEventObject()
JSO constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
defineMethod(String methodName,
StateNode node)
Defines a method with the given name to be a callback to the server for
the given state node.
|
static ServerEventObject |
get(elemental.dom.Element element)
Gets or creates
element.$server for the given element. |
JsArray<String> |
getMethods()
Gets the defined methods.
|
protected static com.vaadin.client.flow.binding.ServerEventObject.ServerEventDataExpression |
getOrCreateExpression(String expressionString) |
void |
removeMethod(String methodName)
Removes a method with the given name.
|
public void defineMethod(String methodName, StateNode node)
Note! If the Polymer.Element contains an implementation for
methodName it will be run before the server-side method.
methodName - the name of the method to addnode - the node to use as an identifier when sending an event to the
serverpublic void removeMethod(String methodName)
methodName - the name of the method to removepublic JsArray<String> getMethods()
public static ServerEventObject get(elemental.dom.Element element)
element.$server for the given element.element - the element to use$server object in the elementprotected static com.vaadin.client.flow.binding.ServerEventObject.ServerEventDataExpression getOrCreateExpression(String expressionString)
Copyright © 2000–2020 Vaadin Ltd. All rights reserved.