Uses of Class
com.vaadin.flow.internal.StateNode
Packages that use StateNode
Package
Description
-
Uses of StateNode in com.vaadin.flow.component.combobox
Constructors in com.vaadin.flow.component.combobox with parameters of type StateNodeModifierConstructorDescriptionComboBoxDataCommunicator
(ComboBoxBase<?, TItem, ?> comboBox, DataGenerator<TItem> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode, boolean fetchEnabled) -
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.component.virtuallist.paging
Constructors in com.vaadin.flow.component.virtuallist.paging with parameters of type StateNodeModifierConstructorDescriptionPagelessDataCommunicator
(DataGenerator<T> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode) -
Uses of StateNode in com.vaadin.flow.data.provider
Constructors in com.vaadin.flow.data.provider with parameters of type StateNodeModifierConstructorDescriptionDataCommunicator
(DataGenerator<T> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode) Creates a new instance.DataCommunicator
(DataGenerator<T> dataGenerator, ArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode, boolean fetchEnabled) Creates a new instance. -
Uses of StateNode in com.vaadin.flow.data.provider.hierarchy
Constructors in com.vaadin.flow.data.provider.hierarchy with parameters of type StateNodeModifierConstructorDescriptionHierarchicalDataCommunicator
(CompositeDataGenerator<T> dataGenerator, HierarchicalArrayUpdater arrayUpdater, SerializableConsumer<elemental.json.JsonArray> dataUpdater, StateNode stateNode, SerializableSupplier<ValueProvider<T, String>> uniqueKeyProviderSupplier) Construct a new hierarchical data communicator backed by aTreeDataProvider
. -
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 thenode
if 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.void
ElementStateProvider.appendVirtualChild
(StateNode node, Element child, String type, String payload) Append the given element as a virtual child.void
ElementStateProvider.attachExistingElement
(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) Attaches a child element with the giventagName
which 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 Element
Gets the element mapped to the given state node.static Element
Element.get
(StateNode node, ElementStateProvider stateProvider) Gets the element mapped to the given state node and element state provider.static ShadowRoot
Gets 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.int
ElementStateProvider.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 thenode
if 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.boolean
ElementStateProvider.hasAttribute
(StateNode node, String attribute) Checks if the given attribute has been set.boolean
ElementStateProvider.hasProperty
(StateNode node, String name) Checks if the given property has been set.void
ElementStateProvider.insertChild
(StateNode node, int index, Element child) Inserts the given child at the given position.static boolean
ShadowRoot.isShadowRoot
(StateNode node) Checks whether the givennode
is a shadow root node.boolean
ElementStateProvider.isTextNode
(StateNode node) Checks if the state node represents a text node.boolean
Gets thenode
visibility.void
ElementStateProvider.removeAllChildren
(StateNode node) Removes all child elements.void
ElementStateProvider.removeAttribute
(StateNode node, String attribute) Removes the given attribute if it has been set.void
ElementStateProvider.removeChild
(StateNode node, int index) Removes the child at the given position.void
ElementStateProvider.removeChild
(StateNode node, Element child) Removes the given child.void
ElementStateProvider.removeProperty
(StateNode node, String name) Removes the given property if it has been set.void
ElementStateProvider.setAttribute
(StateNode node, String attribute, AbstractStreamResource resource) Sets the given attribute to the givenStreamResource
value.void
ElementStateProvider.setAttribute
(StateNode node, String attribute, String value) Sets the given attribute to the given value.default void
ElementStateProvider.setComponent
(StateNode node, Component component) Defines a mapping between the element and the given component.void
ElementStateProvider.setProperty
(StateNode node, String name, Serializable value, boolean emitChange) Sets the given property to the given value.void
ElementStateProvider.setTextContent
(StateNode node, String textContent) Sets the text content.void
ElementStateProvider.setVisible
(StateNode node, boolean visible) Sets thenode
visibility.boolean
Checks if the element state provider supports the given state node.void
ElementStateProvider.visit
(StateNode node, NodeVisitor visitor) Visit thenode
applyingvisitor
to it and its descendants based on the return value from the visitor.Constructors in com.vaadin.flow.dom with parameters of type StateNodeModifierConstructorDescriptionprotected
Element
(StateNode node, ElementStateProvider stateProvider) Private constructor for initializing with an existing node and state provider.protected
Node
(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 StateNode
BasicElementStateProvider.createStateNode
(String tag) Creates a compatible element state node using the giventag
.static StateNode
BasicTextElementStateProvider.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) void
AbstractNodeStateProvider.appendVirtualChild
(StateNode node, Element child, String type, String payload) void
AbstractTextElementStateProvider.appendVirtualChild
(StateNode node, Element child, String type, String payload) void
AbstractNodeStateProvider.attachExistingElement
(StateNode node, String tagName, Element previousSibling, ChildElementConsumer callback) void
AbstractTextElementStateProvider.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) int
AbstractNodeStateProvider.getChildCount
(StateNode node) int
AbstractTextElementStateProvider.getChildCount
(StateNode node) AbstractTextElementStateProvider.getClassList
(StateNode node) BasicElementStateProvider.getClassList
(StateNode node) ShadowRootStateProvider.getClassList
(StateNode node) protected abstract Node<?>
Gets the flyweight instance for thenode
supported 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) boolean
AbstractTextElementStateProvider.hasAttribute
(StateNode node, String attribute) boolean
BasicElementStateProvider.hasAttribute
(StateNode node, String attribute) boolean
ShadowRootStateProvider.hasAttribute
(StateNode node, String attribute) boolean
AbstractTextElementStateProvider.hasProperty
(StateNode node, String name) boolean
BasicElementStateProvider.hasProperty
(StateNode node, String name) boolean
ShadowRootStateProvider.hasProperty
(StateNode node, String name) void
AbstractNodeStateProvider.insertChild
(StateNode node, int index, Element child) void
AbstractTextElementStateProvider.insertChild
(StateNode node, int index, Element child) boolean
AbstractTextElementStateProvider.isTextNode
(StateNode node) boolean
BasicElementStateProvider.isTextNode
(StateNode node) boolean
ShadowRootStateProvider.isTextNode
(StateNode node) boolean
boolean
boolean
void
AbstractNodeStateProvider.removeAllChildren
(StateNode node) void
AbstractTextElementStateProvider.removeAllChildren
(StateNode node) void
AbstractTextElementStateProvider.removeAttribute
(StateNode node, String attribute) void
BasicElementStateProvider.removeAttribute
(StateNode node, String attribute) void
ShadowRootStateProvider.removeAttribute
(StateNode node, String attribute) void
AbstractNodeStateProvider.removeChild
(StateNode node, int index) void
AbstractNodeStateProvider.removeChild
(StateNode node, Element child) void
AbstractTextElementStateProvider.removeChild
(StateNode node, int index) void
AbstractTextElementStateProvider.removeChild
(StateNode node, Element child) void
AbstractTextElementStateProvider.removeProperty
(StateNode node, String name) void
BasicElementStateProvider.removeProperty
(StateNode node, String name) void
ShadowRootStateProvider.removeProperty
(StateNode node, String name) void
AbstractTextElementStateProvider.setAttribute
(StateNode node, String attribute, AbstractStreamResource resource) void
AbstractTextElementStateProvider.setAttribute
(StateNode node, String attribute, String value) void
BasicElementStateProvider.setAttribute
(StateNode node, String attribute, AbstractStreamResource receiver) void
BasicElementStateProvider.setAttribute
(StateNode node, String attribute, String value) void
ShadowRootStateProvider.setAttribute
(StateNode node, String attribute, AbstractStreamResource resource) void
ShadowRootStateProvider.setAttribute
(StateNode node, String attribute, String value) void
AbstractTextElementStateProvider.setProperty
(StateNode node, String name, Serializable value, boolean emitChange) void
BasicElementStateProvider.setProperty
(StateNode node, String name, Serializable value, boolean emitChange) void
ShadowRootStateProvider.setProperty
(StateNode node, String name, Serializable value, boolean emitChange) void
BasicElementStateProvider.setTextContent
(StateNode node, String textContent) void
BasicTextElementStateProvider.setTextContent
(StateNode node, String textContent) void
ShadowRootStateProvider.setTextContent
(StateNode node, String textContent) void
AbstractTextElementStateProvider.setVisible
(StateNode node, boolean visible) void
BasicElementStateProvider.setVisible
(StateNode node, boolean visible) void
ShadowRootStateProvider.setVisible
(StateNode node, boolean visible) boolean
boolean
boolean
void
AbstractTextElementStateProvider.visit
(StateNode node, NodeVisitor visitor) void
BasicElementStateProvider.visit
(StateNode node, NodeVisitor visitor) void
ShadowRootStateProvider.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.boolean
Check if given node is registered to this node owner.boolean
boolean
void
NodeOwner.markAsDirty
(StateNode node) Marks a node owned by this instance as dirty.void
NullOwner.markAsDirty
(StateNode node) void
StateTree.markAsDirty
(StateNode node) int
Registers a node with this node owner.int
int
void
Sets the parent node that this node belongs to.void
NodeOwner.unregister
(StateNode node) Unregisters a node from this owner.void
NullOwner.unregister
(StateNode node) void
StateTree.unregister
(StateNode node) Method parameters in com.vaadin.flow.internal with type arguments of type StateNodeModifier and TypeMethodDescriptionvoid
StateNode.forEachChild
(Consumer<StateNode> action) Executes the given action for each child node of this state node.void
StateNode.visitNodeTree
(Consumer<StateNode> visitor) Applies thevisitor
to 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 StateNode
StateNodeNodeList.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 TypeMethodDescriptionvoid
void
void
protected void
void
Inserts an item supplied with payload type at the given index of the list.void
Inserts an item supplied with payload data at the given index of the list.void
Inserts an item supplied with payload data at the given index of the list.void
Appends an item supplied with payload type as last in the list.void
Appends an item supplied with payload data as last in the list.void
Appends an item supplied with payload data as last in the list.boolean
Returnstrue
if this list contains the specified node.static NodeFeature
NodeFeatureRegistry.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 ElementPropertyMap
Gets the model map for the given node.Node<?>
Gets parentNode
of the registerednode
.AttachExistingElementFeature.getPreviousSibling
(StateNode node) Gets previous sibling of the registerednode
.int
int
int
void
AttachExistingElementFeature.register
(Node<?> parent, Element previousSibling, StateNode child, ChildElementConsumer callback) Registers the data for thechild
node requested as being attached to an existing element.void
ShadowRootData.setShadowRoot
(StateNode node) void
AttachExistingElementFeature.unregister
(StateNode node) Unregister thenode
and clean up all associated data.Method parameters in com.vaadin.flow.internal.nodefeature with type arguments of type StateNodeModifier and TypeMethodDescriptionvoid
ModelList.addAll
(Collection<? extends StateNode> items) protected void
StateNodeNodeList.addAll
(Collection<? extends StateNode> items) void
AttachExistingElementFeature.forEachChild
(Consumer<StateNode> action) abstract void
NodeFeature.forEachChild
(Consumer<StateNode> action) Passes each child node instance to the given consumer.void
NodeList.forEachChild
(Consumer<StateNode> action) void
NodeMap.forEachChild
(Consumer<StateNode> action) void
NodeValue.forEachChild
(Consumer<StateNode> action) void
ServerSideFeature.forEachChild
(Consumer<StateNode> action) void
StateNodeNodeList.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.protected
ComponentMapping
(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.protected
Creates 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.protected
Creates 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
.protected
StateNodeNodeList
(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()
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) CreatesStreamReceiver
instance forstreamVariable
as 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 void
StreamReceiverHandler.doHandleMultipartFileUpload
(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamReceiver streamReceiver, StateNode owner) Streams content from a multipart request to given StreamVariable.protected void
StreamReceiverHandler.doHandleXhrFilePost
(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamReceiver streamReceiver, StateNode owner, long contentLength) Used to stream plain file post (aka XHR2.post(File))protected boolean
StreamReceiverHandler.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 datainvocationJson
using targetnode
as 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)