Uses of Class
com.vaadin.flow.internal.StateNode
Packages that use StateNode
Package
Description
-
Uses of StateNode in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal that return StateNodeModifier and TypeMethodDescriptionPendingJavaScriptInvocation.getOwner()Gets the state node that this invocation belongs to.Constructors in com.vaadin.flow.component.internal with parameters of type StateNodeModifierConstructorDescriptionPendingJavaScriptInvocation(StateNode owner, UIInternals.JavaScriptInvocation invocation) Creates a new pending invocation for the given owner node and invocation. -
Uses of StateNode in com.vaadin.flow.dom
Methods in com.vaadin.flow.dom that return StateNodeModifier and TypeMethodDescriptionElementStateProvider.attachShadow(StateNode node) Attaches the shadow root for thenode.Node.getNode()Gets the node this element is connected to.ElementStateProvider.getShadowRoot(StateNode node) Gets shadow root for thenodeif it has been attached.Methods in com.vaadin.flow.dom with parameters of type StateNodeModifier and TypeMethodDescriptionElementStateProvider.addEventListener(StateNode node, String eventType, DomEventListener listener) Adds a DOM event listener.ElementStateProvider.addPropertyChangeListener(StateNode node, String name, PropertyChangeListener listener) Adds a property change listener.voidElementStateProvider.appendVirtualChild(StateNode node, Element child, String type, String payload) Append the given element as a virtual child.voidElementStateProvider.attachExistingElement(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) Attaches a child element with the giventagNamewhich is the next sibling for thepreviousSibling.ElementStateProvider.attachShadow(StateNode node) Attaches the shadow root for thenode.Gets the element mapped to the given state node.static ElementGets the element mapped to the given state node.static ElementElement.get(StateNode node, ElementStateProvider stateProvider) Gets the element mapped to the given state node and element state provider.static ShadowRootGets the shadow root instance mapped to the given state node.ElementStateProvider.getAttribute(StateNode node, String attribute) Gets the value of the given attribute.ElementStateProvider.getAttributeNames(StateNode node) Gets the defined attribute names.Returns the child element at the given position.intElementStateProvider.getChildCount(StateNode node) Gets the number of child elements.ElementStateProvider.getClassList(StateNode node) Gets a list representation of all CSS class names set for an element.ElementStateProvider.getComponent(StateNode node) Gets the component this element is mapped to.Gets the parent element.ElementStateProvider.getProperty(StateNode node, String name) Gets the value of the given property.ElementStateProvider.getPropertyNames(StateNode node) Gets the defined property names.ElementStateProvider.getShadowRoot(StateNode node) Gets shadow root for thenodeif it has been attached.Returns a style instance for managing element inline styles.Gets the tag name for the given node.ElementStateProvider.getTextContent(StateNode node) Gets the text content.booleanElementStateProvider.hasAttribute(StateNode node, String attribute) Checks if the given attribute has been set.booleanElementStateProvider.hasProperty(StateNode node, String name) Checks if the given property has been set.voidElementStateProvider.insertChild(StateNode node, int index, Element child) Inserts the given child at the given position.static booleanShadowRoot.isShadowRoot(StateNode node) Checks whether the givennodeis a shadow root node.booleanElementStateProvider.isTextNode(StateNode node) Checks if the state node represents a text node.booleanGets thenodevisibility.voidElementStateProvider.removeAllChildren(StateNode node) Removes all child elements.voidElementStateProvider.removeAttribute(StateNode node, String attribute) Removes the given attribute if it has been set.voidElementStateProvider.removeChild(StateNode node, int index) Removes the child at the given position.voidElementStateProvider.removeChild(StateNode node, Element child) Removes the given child.voidElementStateProvider.removeProperty(StateNode node, String name) Removes the given property if it has been set.voidElementStateProvider.setAttribute(StateNode node, String attribute, AbstractStreamResource resource) Sets the given attribute to the givenStreamResourcevalue.voidElementStateProvider.setAttribute(StateNode node, String attribute, String value) Sets the given attribute to the given value.default voidElementStateProvider.setComponent(StateNode node, Component component) Defines a mapping between the element and the given component.voidElementStateProvider.setProperty(StateNode node, String name, Serializable value, boolean emitChange) Sets the given property to the given value.voidElementStateProvider.setTextContent(StateNode node, String textContent) Sets the text content.voidElementStateProvider.setVisible(StateNode node, boolean visible) Sets thenodevisibility.booleanChecks if the element state provider supports the given state node.voidElementStateProvider.visit(StateNode node, NodeVisitor visitor) Visit thenodeapplyingvisitorto it and its descendants based on the return value from the visitor.Constructors in com.vaadin.flow.dom with parameters of type StateNodeModifierConstructorDescriptionprotectedElement(StateNode node, ElementStateProvider stateProvider) Private constructor for initializing with an existing node and state provider.protectedNode(StateNode node, ElementStateProvider stateProvider) Private constructor for initializing with an existing node and state provider. -
Uses of StateNode in com.vaadin.flow.dom.impl
Methods in com.vaadin.flow.dom.impl that return StateNodeModifier and TypeMethodDescriptionAbstractTextElementStateProvider.attachShadow(StateNode node) BasicElementStateProvider.attachShadow(StateNode node) ShadowRootStateProvider.attachShadow(StateNode node) ShadowRootStateProvider.createShadowRootNode(StateNode node) Create a new shadow root node for the given elementnode.static StateNodeBasicElementStateProvider.createStateNode(String tag) Creates a compatible element state node using the giventag.static StateNodeBasicTextElementStateProvider.createStateNode(String text) Creates a compatible text state node using the given text.AbstractTextElementStateProvider.getShadowRoot(StateNode node) BasicElementStateProvider.getShadowRoot(StateNode node) ShadowRootStateProvider.getShadowRoot(StateNode node) Methods in com.vaadin.flow.dom.impl with parameters of type StateNodeModifier and TypeMethodDescriptionAbstractTextElementStateProvider.addEventListener(StateNode node, String eventType, DomEventListener listener) BasicElementStateProvider.addEventListener(StateNode node, String eventType, DomEventListener listener) ShadowRootStateProvider.addEventListener(StateNode node, String eventType, DomEventListener listener) AbstractTextElementStateProvider.addPropertyChangeListener(StateNode node, String name, PropertyChangeListener listener) BasicElementStateProvider.addPropertyChangeListener(StateNode node, String name, PropertyChangeListener listener) ShadowRootStateProvider.addPropertyChangeListener(StateNode node, String name, PropertyChangeListener listener) voidAbstractNodeStateProvider.appendVirtualChild(StateNode node, Element child, String type, String payload) voidAbstractTextElementStateProvider.appendVirtualChild(StateNode node, Element child, String type, String payload) voidAbstractNodeStateProvider.attachExistingElement(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) voidAbstractTextElementStateProvider.attachExistingElement(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) AbstractTextElementStateProvider.attachShadow(StateNode node) BasicElementStateProvider.attachShadow(StateNode node) ShadowRootStateProvider.attachShadow(StateNode node) ShadowRootStateProvider.createShadowRootNode(StateNode node) Create a new shadow root node for the given elementnode.AbstractTextElementStateProvider.getAttribute(StateNode node, String attribute) BasicElementStateProvider.getAttribute(StateNode node, String attribute) ShadowRootStateProvider.getAttribute(StateNode node, String attribute) AbstractTextElementStateProvider.getAttributeNames(StateNode node) BasicElementStateProvider.getAttributeNames(StateNode node) ShadowRootStateProvider.getAttributeNames(StateNode node) intAbstractNodeStateProvider.getChildCount(StateNode node) intAbstractTextElementStateProvider.getChildCount(StateNode node) AbstractTextElementStateProvider.getClassList(StateNode node) BasicElementStateProvider.getClassList(StateNode node) ShadowRootStateProvider.getClassList(StateNode node) protected abstract Node<?>Gets the flyweight instance for thenodesupported by the provider.protected Node<?>protected Node<?>Node<?>AbstractTextElementStateProvider.getProperty(StateNode node, String name) BasicElementStateProvider.getProperty(StateNode node, String name) ShadowRootStateProvider.getProperty(StateNode node, String name) AbstractTextElementStateProvider.getPropertyNames(StateNode node) BasicElementStateProvider.getPropertyNames(StateNode node) ShadowRootStateProvider.getPropertyNames(StateNode node) AbstractTextElementStateProvider.getShadowRoot(StateNode node) BasicElementStateProvider.getShadowRoot(StateNode node) ShadowRootStateProvider.getShadowRoot(StateNode node) BasicElementStateProvider.getTextContent(StateNode node) BasicTextElementStateProvider.getTextContent(StateNode node) ShadowRootStateProvider.getTextContent(StateNode node) booleanAbstractTextElementStateProvider.hasAttribute(StateNode node, String attribute) booleanBasicElementStateProvider.hasAttribute(StateNode node, String attribute) booleanShadowRootStateProvider.hasAttribute(StateNode node, String attribute) booleanAbstractTextElementStateProvider.hasProperty(StateNode node, String name) booleanBasicElementStateProvider.hasProperty(StateNode node, String name) booleanShadowRootStateProvider.hasProperty(StateNode node, String name) voidAbstractNodeStateProvider.insertChild(StateNode node, int index, Element child) voidAbstractTextElementStateProvider.insertChild(StateNode node, int index, Element child) booleanAbstractTextElementStateProvider.isTextNode(StateNode node) booleanBasicElementStateProvider.isTextNode(StateNode node) booleanShadowRootStateProvider.isTextNode(StateNode node) booleanbooleanbooleanvoidAbstractNodeStateProvider.removeAllChildren(StateNode node) voidAbstractTextElementStateProvider.removeAllChildren(StateNode node) voidAbstractTextElementStateProvider.removeAttribute(StateNode node, String attribute) voidBasicElementStateProvider.removeAttribute(StateNode node, String attribute) voidShadowRootStateProvider.removeAttribute(StateNode node, String attribute) voidAbstractNodeStateProvider.removeChild(StateNode node, int index) voidAbstractNodeStateProvider.removeChild(StateNode node, Element child) voidAbstractTextElementStateProvider.removeChild(StateNode node, int index) voidAbstractTextElementStateProvider.removeChild(StateNode node, Element child) voidAbstractTextElementStateProvider.removeProperty(StateNode node, String name) voidBasicElementStateProvider.removeProperty(StateNode node, String name) voidShadowRootStateProvider.removeProperty(StateNode node, String name) voidAbstractTextElementStateProvider.setAttribute(StateNode node, String attribute, AbstractStreamResource resource) voidAbstractTextElementStateProvider.setAttribute(StateNode node, String attribute, String value) voidBasicElementStateProvider.setAttribute(StateNode node, String attribute, AbstractStreamResource receiver) voidBasicElementStateProvider.setAttribute(StateNode node, String attribute, String value) voidShadowRootStateProvider.setAttribute(StateNode node, String attribute, AbstractStreamResource resource) voidShadowRootStateProvider.setAttribute(StateNode node, String attribute, String value) voidAbstractTextElementStateProvider.setProperty(StateNode node, String name, Serializable value, boolean emitChange) voidBasicElementStateProvider.setProperty(StateNode node, String name, Serializable value, boolean emitChange) voidShadowRootStateProvider.setProperty(StateNode node, String name, Serializable value, boolean emitChange) voidBasicElementStateProvider.setTextContent(StateNode node, String textContent) voidBasicTextElementStateProvider.setTextContent(StateNode node, String textContent) voidShadowRootStateProvider.setTextContent(StateNode node, String textContent) voidAbstractTextElementStateProvider.setVisible(StateNode node, boolean visible) voidBasicElementStateProvider.setVisible(StateNode node, boolean visible) voidShadowRootStateProvider.setVisible(StateNode node, boolean visible) booleanbooleanbooleanvoidAbstractTextElementStateProvider.visit(StateNode node, NodeVisitor visitor) voidBasicElementStateProvider.visit(StateNode node, NodeVisitor visitor) voidShadowRootStateProvider.visit(StateNode node, NodeVisitor visitor) -
Uses of StateNode in com.vaadin.flow.internal
Methods in com.vaadin.flow.internal that return StateNodeModifier and TypeMethodDescriptionStateTree.getNodeById(int id) Finds a node with the given id.StateNode.getParent()Gets the parent node that this node belongs to.StateTree.getRootNode()Gets the root node of this state tree.StateTree.BeforeClientResponseEntry.getStateNode()Methods in com.vaadin.flow.internal that return types with arguments of type StateNodeModifier and TypeMethodDescriptionStateTree.collectDirtyNodes()Gets all the nodes that have been marked.Methods in com.vaadin.flow.internal with parameters of type StateNodeModifier and TypeMethodDescriptionStateTree.beforeClientResponse(StateNode context, SerializableConsumer<ExecutionContext> execution) Registers a task to be executed before the response is sent to the client.booleanCheck if given node is registered to this node owner.booleanbooleanvoidNodeOwner.markAsDirty(StateNode node) Marks a node owned by this instance as dirty.voidNullOwner.markAsDirty(StateNode node) voidStateTree.markAsDirty(StateNode node) intRegisters a node with this node owner.intintvoidSets the parent node that this node belongs to.voidNodeOwner.unregister(StateNode node) Unregisters a node from this owner.voidNullOwner.unregister(StateNode node) voidStateTree.unregister(StateNode node) Method parameters in com.vaadin.flow.internal with type arguments of type StateNodeModifier and TypeMethodDescriptionvoidStateNode.forEachChild(Consumer<StateNode> action) Executes the given action for each child node of this state node.voidStateNode.visitNodeTree(Consumer<StateNode> visitor) Applies thevisitorto this node and all its descendants.Constructors in com.vaadin.flow.internal with parameters of type StateNode -
Uses of StateNode in com.vaadin.flow.internal.change
Methods in com.vaadin.flow.internal.change that return StateNodeConstructors in com.vaadin.flow.internal.change with parameters of type StateNodeModifierConstructorDescriptionNodeAttachChange(StateNode node) Creates a new attach change.NodeChange(StateNode node) Creates a new change for the given node.NodeDetachChange(StateNode node) Creates a new detach change. -
Uses of StateNode in com.vaadin.flow.internal.nodefeature
Methods in com.vaadin.flow.internal.nodefeature that return StateNodeModifier and TypeMethodDescriptionElementChildrenList.get(int index) ModelList.get(int index) VirtualChildrenList.get(int index) ShadowRootHost.getHost()Gets the host state node of the shadow root node.NodeFeature.getNode()Gets the node that this feature belongs to.ShadowRootData.getShadowRoot()ElementChildrenList.remove(int index) ModelList.remove(int index) protected StateNodeStateNodeNodeList.remove(int index) VirtualChildrenList.remove(int index) Methods in com.vaadin.flow.internal.nodefeature that return types with arguments of type StateNodeMethods in com.vaadin.flow.internal.nodefeature with parameters of type StateNodeModifier and TypeMethodDescriptionvoidvoidvoidprotected voidvoidInserts an item supplied with payload type at the given index of the list.voidInserts an item supplied with payload data at the given index of the list.voidInserts an item supplied with payload data at the given index of the list.voidAppends an item supplied with payload type as last in the list.voidAppends an item supplied with payload data as last in the list.voidAppends an item supplied with payload data as last in the list.booleanReturnstrueif this list contains the specified node.static NodeFeatureNodeFeatureRegistry.create(Class<? extends NodeFeature> nodeFeatureType, StateNode node) Creates a feature of the given type for a node.AttachExistingElementFeature.getCallback(StateNode node) Gets callback of the registerednode.ComponentMapping.getComponent(StateNode node) Gets the component mapped to the given state node.static ElementPropertyMapGets the model map for the given node.Node<?>Gets parentNodeof the registerednode.AttachExistingElementFeature.getPreviousSibling(StateNode node) Gets previous sibling of the registerednode.intintintvoidAttachExistingElementFeature.register(Node<?> parent, Element previousSibling, StateNode child, ChildElementConsumer callback) Registers the data for thechildnode requested as being attached to an existing element.voidShadowRootData.setShadowRoot(StateNode node) voidAttachExistingElementFeature.unregister(StateNode node) Unregister thenodeand clean up all associated data.Method parameters in com.vaadin.flow.internal.nodefeature with type arguments of type StateNodeModifier and TypeMethodDescriptionvoidModelList.addAll(Collection<? extends StateNode> items) protected voidStateNodeNodeList.addAll(Collection<? extends StateNode> items) voidAttachExistingElementFeature.forEachChild(Consumer<StateNode> action) abstract voidNodeFeature.forEachChild(Consumer<StateNode> action) Passes each child node instance to the given consumer.voidNodeList.forEachChild(Consumer<StateNode> action) voidNodeMap.forEachChild(Consumer<StateNode> action) voidNodeValue.forEachChild(Consumer<StateNode> action) voidServerSideFeature.forEachChild(Consumer<StateNode> action) voidStateNodeNodeList.forEachChild(Consumer<StateNode> action) Constructors in com.vaadin.flow.internal.nodefeature with parameters of type StateNodeModifierConstructorDescriptionAbstractPropertyMap(StateNode node) Creates a new element property map for the given node.Creates a new meta information list for the given state node.Creates a new instance for the given node.BasicTypeValue(StateNode node) Creates a new value map for the given node.Creates a new meta information list for the given state node.protectedComponentMapping(StateNode node) Creates an instance of this node feature.ElementAttributeMap(StateNode node) Creates a new element attribute map for the given node.ElementChildrenList(StateNode node) Creates a new element children list for the given node.ElementClassList(StateNode node) Creates a new class list for the given node.ElementData(StateNode node) Creates a new element data map for the given node.ElementListenerMap(StateNode node) Creates a new element listener map for the given node.ElementPropertyMap(StateNode node) Creates a new element property map for the given node.Creates a new element style map for the given node.Creates a new feature for the given node.Creates a new map for the given node.Creates an instance of this node feature.NodeFeature(StateNode node) Creates a new feature for the given node.protectedCreates a new list for the given node.Creates a new map feature for the given node.Creates a new feature for the given node.Creates a new map for the given node.Creates a new map feature for the given node.Deprecated.Creates a new meta information list for the given state node.Creates a new map for the given node.Creates a new map for the given node.Creates a new map for the given node.ReturnChannelMap(StateNode node) Creates a new return channel map for the given state node.protectedCreates a new list for the given node.ServerSideFeature(StateNode node) Creates a new feature for the given node.ShadowRootData(StateNode node) Creates a new element data map for the given node.ShadowRootHost(StateNode node) Creates a new instance of the feature for the givennode.protectedStateNodeNodeList(StateNode node) Creates a new list for the given node.TextNodeMap(StateNode node) Creates a new text node map for the given node.VirtualChildrenList(StateNode node) Creates a new element virtual children list for the given node. -
Uses of StateNode in com.vaadin.flow.server
Methods in com.vaadin.flow.server that return StateNodeModifier and TypeMethodDescriptionStreamReceiver.getNode()Deprecated, for removal: This API element is subject to removal in a future version.Get the node that this stream receiver is linked to.Constructors in com.vaadin.flow.server with parameters of type StateNodeModifierConstructorDescriptionErrorEvent(Throwable throwable, StateNode componentNode) Create an error event which wraps the given throwable and component for exception.StreamReceiver(StateNode node, String resourceName, StreamVariable streamVariable) Deprecated, for removal: This API element is subject to removal in a future version.CreatesStreamReceiverinstance forstreamVariableas a data receiver. -
Uses of StateNode in com.vaadin.flow.server.communication
Methods in com.vaadin.flow.server.communication with parameters of type StateNodeModifier and TypeMethodDescriptionprotected voidStreamReceiverHandler.doHandleMultipartFileUpload(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamReceiver streamReceiver, StateNode owner) Streams content from a multipart request to given StreamVariable.protected voidStreamReceiverHandler.doHandleXhrFilePost(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamReceiver streamReceiver, StateNode owner, long contentLength) Used to stream plain file post (aka XHR2.post(File))protected booleanStreamReceiverHandler.handleFileUploadValidationAndData(VaadinSession session, InputStream inputStream, StreamReceiver streamReceiver, String filename, String mimeType, long contentLength, StateNode node) Validate that stream target is in a valid state for receiving data and send stream to receiver.ReturnChannelHandler.handleNode(StateNode node, elemental.json.JsonObject invocationJson) -
Uses of StateNode in com.vaadin.flow.server.communication.rpc
Methods in com.vaadin.flow.server.communication.rpc with parameters of type StateNodeModifier and TypeMethodDescriptionAbstractRpcInvocationHandler.handleNode(StateNode node, elemental.json.JsonObject invocationJson) Handle the RPC datainvocationJsonusing targetnodeas a context.AttachExistingElementRpcHandler.handleNode(StateNode node, elemental.json.JsonObject invocationJson) AttachTemplateChildRpcHandler.handleNode(StateNode node, elemental.json.JsonObject invocationJson) EventRpcHandler.handleNode(StateNode node, elemental.json.JsonObject invocationJson) MapSyncRpcHandler.handleNode(StateNode node, elemental.json.JsonObject invocationJson) PublishedServerEventHandlerRpcHandler.handleNode(StateNode node, elemental.json.JsonObject invocationJson)