Uses of Class
com.vaadin.client.flow.StateNode
-
Packages that use StateNode 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 -
-
Uses of StateNode in com.vaadin.client
Methods in com.vaadin.client with parameters of type StateNode Modifier and Type Method Description static voidExecuteJavaScriptElementUtils. 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 StringPolymerUtils. getTag(StateNode node)Gets the tag name of thenode.voidInitialPropertiesHandler. nodeRegistered(StateNode node)Notifies the handler about registered node.static voidExecuteJavaScriptElementUtils. populateModelProperties(StateNode node, JsArray<String> properties)Populate modelproperties: add them into NodeFeatures.ELEMENT_PROPERTIESNodeMapif they are not defined by the client-side element or send their client-side value to the server otherwise.static voidExecuteJavaScriptElementUtils. registerUpdatableModelProperties(StateNode node, JsArray<String> properties)Register the updatable model properties of thenode. -
Uses of StateNode in com.vaadin.client.communication
Methods in com.vaadin.client.communication with parameters of type StateNode Modifier and Type Method Description static voidLoadingIndicatorConfigurator. observe(StateNode node)Observes the given node for loading indicator configuration changes and configures the loading indicator singleton accordingly.static voidPollConfigurator. observe(StateNode node, Poller poller)Observes the given node for poll configuration changes and configures the given poller accordingly.voidServerConnector. sendEventMessage(StateNode node, String eventType, elemental.json.JsonObject eventData)Sends an event message to the server.voidServerConnector. sendExistingElementAttachToServer(StateNode parent, int requestedId, int assignedId, String tagName, int index)Sends a data for attach existing element server side callback.voidServerConnector. sendExistingElementWithIdAttachToServer(StateNode parent, int requestedId, int assignedId, String id)Sends a data for attach existing element with id server side callback.voidServerConnector. sendNodeSyncMessage(StateNode node, int feature, String key, Object value)Sends a node value sync message to the server.voidServerConnector. sendTemplateEventMessage(StateNode node, String methodName, elemental.json.JsonArray argsArray, int promiseId)Sends a template event message to the server. -
Uses of StateNode in com.vaadin.client.flow
Methods in com.vaadin.client.flow that return StateNode Modifier and Type Method Description StateNodeNodeUnregisterEvent. getNode()Gets the unregistered node.StateNodeStateTree. getNode(int id)Finds the node with the given id.StateNodeStateNode. getParent()Get the parentStateNodeif set.StateNodeStateTree. getRootNode()Gets the root node of this tree.StateNodeStateTree. getStateNodeForDomNode(DomNode domNode)Returns the state node in the tree for the given dom node ornullif none found.static StateNodeTreeChangeProcessor. processChange(StateTree tree, elemental.json.JsonObject change)Update a state tree based on a JSON change.Methods in com.vaadin.client.flow that return types with arguments of type StateNode Modifier and Type Method Description static JsSet<StateNode>TreeChangeProcessor. processChanges(StateTree tree, elemental.json.JsonArray changes)Update a state tree based on a JSON array of changes.Methods in com.vaadin.client.flow with parameters of type StateNode Modifier and Type Method Description booleanStateTree. isActive(StateNode node)Checks whether thenodeis active.protected booleanExecuteJavaScriptProcessor. isBound(StateNode node)booleanStateTree. isVisible(StateNode node)Returns the visibility state of thenode.voidStateTree. registerNode(StateNode node)Registers a node with this tree.voidStateTree. sendEventToServer(StateNode node, String eventType, elemental.json.JsonObject eventData)Sends an event to the server.voidStateTree. sendExistingElementAttachToServer(StateNode parent, int requestedId, int assignedId, String tagName, int index)Sends a data for attach existing element server side callback.voidStateTree. sendExistingElementWithIdAttachToServer(StateNode parent, int requestedId, int assignedId, String id)Sends a data for attach existing element with id server side callback.voidStateTree. sendTemplateEventToServer(StateNode node, String methodName, JsArray<?> argsArray, int promiseId)Sends a request to call server side method withmethodNameusingargsArrayas argument values.voidStateNode. setParent(StateNode parent)Set the parentStateNodefor this node.voidStateTree. unregisterNode(StateNode node)Unregisters a node from this tree.Method parameters in com.vaadin.client.flow with type arguments of type StateNode Modifier and Type Method Description elemental.events.EventRemoverStateNode. addDomNodeSetListener(Function<StateNode,Boolean> listener)Adds a listener to get a notification when the DOM Node is set for thisStateNode.protected voidExecuteJavaScriptProcessor. invoke(String[] parameterNamesAndCode, JsArray<Object> parameters, JsMap<Object,StateNode> nodeParameters)Executes the actual invocation.Constructors in com.vaadin.client.flow with parameters of type StateNode Constructor Description NodeUnregisterEvent(StateNode node)Creates a new node unregister event. -
Uses of StateNode in com.vaadin.client.flow.binding
Methods in com.vaadin.client.flow.binding with parameters of type StateNode Modifier and Type Method Description static voidBinder. bind(StateNode stateNode, elemental.dom.Node domNode)Bind thedomNodeto thestateNode.voidBinderContext. bind(StateNode stateNode, elemental.dom.Node node)Binds a DOM node for the given state node.voidBindingStrategy. bind(StateNode stateNode, T domNode, BinderContext context)Binds a DOM node to thestateNodeusingcontextto create and bind nodes of other types.voidSimpleElementBindingStrategy. bind(StateNode stateNode, elemental.dom.Element htmlNode, BinderContext nodeFactory)voidTextBindingStrategy. bind(StateNode stateNode, elemental.dom.Text htmlNode, BinderContext nodeFactory)static elemental.events.EventRemoverServerEventHandlerBinder. bindServerEventHandlerNames(elemental.dom.Element element, StateNode node)Registers all the server event handler names found in theNodeFeatures.CLIENT_DELEGATE_HANDLERSfeature in the state node asserverObject.<methodName>.static elemental.events.EventRemoverServerEventHandlerBinder. bindServerEventHandlerNames(Supplier<ServerEventObject> objectProvider, StateNode node, int featureId, boolean returnValue)Registers all the server event handler names found in the feature with thefeatureIdin theServerEventObjectobject.TBindingStrategy. create(StateNode node)Creates a DOM node for thenode.elemental.dom.ElementSimpleElementBindingStrategy. create(StateNode node)elemental.dom.TextTextBindingStrategy. create(StateNode node)elemental.dom.NodeBinderContext. createAndBind(StateNode node)Creates and binds a DOM node for the given state node.voidServerEventObject. 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 StringBindingStrategy. getTag(StateNode node)Gets the tag value from theNodeFeatures.ELEMENT_DATAfeature for thenode.booleanBindingStrategy. isApplicable(StateNode node)Returnstrueis the strategy is applicable to thenode.booleanSimpleElementBindingStrategy. isApplicable(StateNode node)booleanTextBindingStrategy. isApplicable(StateNode node)static booleanSimpleElementBindingStrategy. needsRebind(StateNode node)Checks whether thenodeneeds re-bind. -
Uses of StateNode in com.vaadin.client.flow.nodefeature
Methods in com.vaadin.client.flow.nodefeature that return StateNode Modifier and Type Method Description StateNodeNodeFeature. getNode()Gets the node of this feature.Constructors in com.vaadin.client.flow.nodefeature with parameters of type StateNode Constructor 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. -
Uses of StateNode in com.vaadin.client.flow.util
Methods in com.vaadin.client.flow.util that return StateNode Modifier and Type Method Description static StateNodeClientJsonCodec. decodeStateNode(StateTree tree, elemental.json.JsonValue json)Decodes a value as aStateNodeencoded on the server usingJsonCodec.encodeWithTypeInfo(Object)if it's possible.
-