| Package | Description |
|---|---|
| com.vaadin.client | |
| com.vaadin.client.communication | |
| com.vaadin.client.flow | |
| com.vaadin.client.flow.binding | |
| com.vaadin.client.flow.nodefeature | |
| com.vaadin.client.flow.util |
| Modifier and Type | Method and Description |
|---|---|
static void |
ExecuteJavaScriptElementUtils.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 String |
PolymerUtils.getTag(StateNode node)
Gets the tag name of the
node. |
void |
InitialPropertiesHandler.nodeRegistered(StateNode node)
Notifies the handler about registered node.
|
static void |
ExecuteJavaScriptElementUtils.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 |
ExecuteJavaScriptElementUtils.registerUpdatableModelProperties(StateNode node,
JsArray<String> properties)
Register the updatable model properties of the
node. |
| Modifier and Type | Method and Description |
|---|---|
static void |
LoadingIndicatorConfigurator.observe(StateNode node,
LoadingIndicator loadingIndicator)
Observes the given node for loading indicator configuration changes and
configures the loading indicator singleton accordingly.
|
static void |
PollConfigurator.observe(StateNode node,
Poller poller)
Observes the given node for poll configuration changes and configures the
given poller accordingly.
|
void |
ServerConnector.sendEventMessage(StateNode node,
String eventType,
elemental.json.JsonObject eventData)
Sends an event message to the server.
|
void |
ServerConnector.sendExistingElementAttachToServer(StateNode parent,
int requestedId,
int assignedId,
String tagName,
int index)
Sends a data for attach existing element server side callback.
|
void |
ServerConnector.sendExistingElementWithIdAttachToServer(StateNode parent,
int requestedId,
int assignedId,
String id)
Sends a data for attach existing element with id server side callback.
|
void |
ServerConnector.sendNodeSyncMessage(StateNode node,
int feature,
String key,
Object value)
Sends a node value sync message to the server.
|
void |
ServerConnector.sendTemplateEventMessage(StateNode node,
String methodName,
elemental.json.JsonArray argsArray,
int promiseId)
Sends a template event message to the server.
|
| Modifier and Type | Method and Description |
|---|---|
StateNode |
NodeUnregisterEvent.getNode()
Gets the unregistered node.
|
StateNode |
StateTree.getNode(int id)
Finds the node with the given id.
|
StateNode |
StateNode.getParent()
Get the parent
StateNode if set. |
StateNode |
StateTree.getRootNode()
Gets the root node of this tree.
|
static StateNode |
TreeChangeProcessor.processChange(StateTree tree,
elemental.json.JsonObject change)
Update a state tree based on a JSON change.
|
| Modifier and Type | Method and Description |
|---|---|
static JsSet<StateNode> |
TreeChangeProcessor.processChanges(StateTree tree,
elemental.json.JsonArray changes)
Update a state tree based on a JSON array of changes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
StateTree.isActive(StateNode node)
Checks whether the
node is active. |
protected boolean |
ExecuteJavaScriptProcessor.isBound(StateNode node) |
boolean |
StateTree.isVisible(StateNode node)
Returns the visibility state of the
node. |
void |
StateTree.registerNode(StateNode node)
Registers a node with this tree.
|
void |
StateTree.sendEventToServer(StateNode node,
String eventType,
elemental.json.JsonObject eventData)
Sends an event to the server.
|
void |
StateTree.sendExistingElementAttachToServer(StateNode parent,
int requestedId,
int assignedId,
String tagName,
int index)
Sends a data for attach existing element server side callback.
|
void |
StateTree.sendExistingElementWithIdAttachToServer(StateNode parent,
int requestedId,
int assignedId,
String id)
Sends a data for attach existing element with id server side callback.
|
void |
StateTree.sendTemplateEventToServer(StateNode node,
String methodName,
JsArray<?> argsArray,
int promiseId)
Sends a request to call server side method with
methodName using
argsArray as argument values. |
void |
StateNode.setParent(StateNode parent)
Set the parent
StateNode for this node. |
void |
StateTree.unregisterNode(StateNode node)
Unregisters a node from this tree.
|
| Modifier and Type | Method and Description |
|---|---|
elemental.events.EventRemover |
StateNode.addDomNodeSetListener(Function<StateNode,Boolean> listener)
Adds a listener to get a notification when the DOM Node is set for this
StateNode. |
protected void |
ExecuteJavaScriptProcessor.invoke(String[] parameterNamesAndCode,
JsArray<Object> parameters,
JsMap<Object,StateNode> nodeParameters)
Executes the actual invocation.
|
| Constructor and Description |
|---|
NodeUnregisterEvent(StateNode node)
Creates a new node unregister event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleElementBindingStrategy.bind(StateNode stateNode,
elemental.dom.Element htmlNode,
BinderContext nodeFactory) |
void |
BinderContext.bind(StateNode stateNode,
elemental.dom.Node node)
Binds a DOM node for the given state node.
|
static void |
Binder.bind(StateNode stateNode,
elemental.dom.Node domNode)
Bind the
domNode to the stateNode. |
void |
BindingStrategy.bind(StateNode stateNode,
T domNode,
BinderContext context)
Binds a DOM node to the
stateNode using context to create
and bind nodes of other types. |
void |
TextBindingStrategy.bind(StateNode stateNode,
elemental.dom.Text htmlNode,
BinderContext nodeFactory) |
static elemental.events.EventRemover |
ServerEventHandlerBinder.bindServerEventHandlerNames(elemental.dom.Element element,
StateNode node)
Registers all the server event handler names found in the
NodeFeatures.CLIENT_DELEGATE_HANDLERS feature in the state node
as serverObject.<methodName>. |
static elemental.events.EventRemover |
ServerEventHandlerBinder.bindServerEventHandlerNames(Supplier<ServerEventObject> objectProvider,
StateNode node,
int featureId,
boolean returnValue)
Registers all the server event handler names found in the feature with
the
featureId in the ServerEventObject object. |
elemental.dom.Text |
TextBindingStrategy.create(StateNode node) |
elemental.dom.Element |
SimpleElementBindingStrategy.create(StateNode node) |
T |
BindingStrategy.create(StateNode node)
Creates a DOM node for the
node. |
elemental.dom.Node |
BinderContext.createAndBind(StateNode node)
Creates and binds a DOM node for the given state node.
|
void |
ServerEventObject.defineMethod(String methodName,
StateNode node,
boolean returnPromise)
Defines a method with the given name to be a callback to the server for
the given state node.
|
default String |
BindingStrategy.getTag(StateNode node)
Gets the tag value from the
NodeFeatures.ELEMENT_DATA feature for
the node. |
boolean |
TextBindingStrategy.isApplicable(StateNode node) |
boolean |
SimpleElementBindingStrategy.isApplicable(StateNode node) |
boolean |
BindingStrategy.isApplicable(StateNode node)
Returns
true is the strategy is applicable to the node. |
static boolean |
SimpleElementBindingStrategy.needsRebind(StateNode node)
Checks whether the
node needs re-bind. |
| Modifier and Type | Method and Description |
|---|---|
StateNode |
NodeFeature.getNode()
Gets the node of this feature.
|
| Constructor and Description |
|---|
NodeFeature(int id,
StateNode node)
Creates a new feature.
|
NodeList(int id,
StateNode node)
Creates a new list.
|
NodeMap(int id,
StateNode node)
Creates a new map feature.
|
| Modifier and Type | Method and Description |
|---|---|
static StateNode |
ClientJsonCodec.decodeStateNode(StateTree tree,
elemental.json.JsonValue json)
Decodes a value as a
StateNode encoded on the server using
JsonCodec.encodeWithTypeInfo(Object) if it's possible. |
Copyright © 2000–2021 Vaadin Ltd. All rights reserved.