Uses of Class
com.vaadin.client.flow.StateNode
Packages that use StateNode
Package
Description
-
Uses of StateNode in com.vaadin.client
Methods in com.vaadin.client with parameters of type StateNodeModifier and TypeMethodDescriptionstatic 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 StringGets 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 StateNodeModifier and TypeMethodDescriptionstatic voidObserves the given node for loading indicator configuration changes and configures the loading indicator singleton accordingly.static voidObserves 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 StateNodeModifier and TypeMethodDescriptionNodeUnregisterEvent.getNode()Gets the unregistered node.StateTree.getNode(int id) Finds the node with the given id.StateNode.getParent()Get the parentStateNodeif set.StateTree.getRootNode()Gets the root node of this tree.StateTree.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 StateNodeModifier and TypeMethodDescriptionTreeChangeProcessor.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 StateNodeModifier and TypeMethodDescriptionbooleanChecks whether thenodeis active.protected booleanbooleanReturns the visibility state of thenode.final 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.voidSet 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 StateNodeModifier and TypeMethodDescriptionelemental.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 StateNodeModifierConstructorDescriptionNodeUnregisterEvent(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 StateNodeModifier and TypeMethodDescriptionstatic voidBind thedomNodeto thestateNode.voidBinds 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.Creates a DOM node for thenode.elemental.dom.Elementelemental.dom.Textelemental.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 StringGets 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 StateNodeConstructors in com.vaadin.client.flow.nodefeature with parameters of type StateNode -
Uses of StateNode in com.vaadin.client.flow.util
Methods in com.vaadin.client.flow.util that return StateNodeModifier and TypeMethodDescriptionstatic StateNodeClientJsonCodec.decodeStateNode(StateTree tree, elemental.json.JsonValue json) Decodes a value as aStateNodeencoded on the server usingJsonCodec.encodeWithTypeInfo(Object)if it's possible.