public final class ExecuteJavaScriptElementUtils extends Object
ExecuteJavaScriptProcessor| Modifier and Type | Method and Description |
|---|---|
static void |
attachExistingElement(StateNode parent,
elemental.dom.Element previousSibling,
String tagName,
int id)
Calculate the data required for server side callback to attach existing
element and send it to the server.
|
static void |
populateModelProperties(StateNode node,
JsArray<String> properties)
Populate model
properties: add them into
NodeFeatures.ELEMENT_PROPERTIES NodeMap if they are
not defined by the client-side element or send their client-side value to
the server otherwise. |
static void |
registerUpdatableModelProperties(StateNode node,
JsArray<String> properties)
Register the updatable model properties of the
node. |
public static void attachExistingElement(StateNode parent, elemental.dom.Element previousSibling, String tagName, int id)
parent - the parent node whose child is requested to attachpreviousSibling - previous sibling elementtagName - the tag name of the element requested to attachid - the identifier of the server side node which is requested to
be a counterpart of the client side elementpublic static void populateModelProperties(StateNode node, JsArray<String> properties)
properties: add them into
NodeFeatures.ELEMENT_PROPERTIES NodeMap if they are
not defined by the client-side element or send their client-side value to
the server otherwise.node - the node whose properties should be populatedproperties - array of property names to populatepublic static void registerUpdatableModelProperties(StateNode node, JsArray<String> properties)
node.
Only updates for the properties from the properties array will be
sent to the server without explicit synchronization. The
properties array includes all properties that are allowed to be
updated (including sub properties).
node - the node whose updatable properties should be registeredproperties - all updatable model propertiesCopyright © 2000–2018 Vaadin Ltd. All rights reserved.