Class StateNodeNodeList
- java.lang.Object
-
- com.vaadin.flow.internal.nodefeature.NodeFeature
-
- com.vaadin.flow.internal.nodefeature.NodeList<StateNode>
-
- com.vaadin.flow.internal.nodefeature.StateNodeNodeList
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ElementChildrenList,ModelList,VirtualChildrenList
public abstract class StateNodeNodeList extends NodeList<StateNode>
A list which containsStateNodes.For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.flow.internal.nodefeature.NodeList
NodeList.SetView<T extends Serializable>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStateNodeNodeList(StateNode node)Creates a new list for the given node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(int index, StateNode item)Inserts an item at the given index of the list.protected voidaddAll(Collection<? extends StateNode> items)Adds all provided items to the end of the list.protected voidclear()Removes all nodes, including those not known by the server.voidforEachChild(Consumer<StateNode> action)Passes each child node instance to the given consumer.protected booleanisNodeValues()Checks whether this list contains node values.protected StateNoderemove(int index)Removes the item at the given index.-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeList
add, collectChanges, generateChangesFromEmpty, get, getChangeTracker, indexOf, iterator, onDetach, size
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach
-
-
-
-
Constructor Detail
-
StateNodeNodeList
protected StateNodeNodeList(StateNode node)
Creates a new list for the given node.- Parameters:
node- the node that the list belongs to
-
-
Method Detail
-
isNodeValues
protected boolean isNodeValues()
Description copied from class:NodeListChecks whether this list contains node values.- Overrides:
isNodeValuesin classNodeList<StateNode>- Returns:
trueif this list contains node values;falseif this list contains primitive values
-
add
protected void add(int index, StateNode item)Description copied from class:NodeListInserts an item at the given index of the list.
-
addAll
protected void addAll(Collection<? extends StateNode> items)
Description copied from class:NodeListAdds all provided items to the end of the list.
-
remove
protected StateNode remove(int index)
Description copied from class:NodeListRemoves the item at the given index.
-
clear
protected void clear()
Description copied from class:NodeListRemoves all nodes, including those not known by the server.
-
forEachChild
public void forEachChild(Consumer<StateNode> action)
Description copied from class:NodeFeaturePasses each child node instance to the given consumer.- Overrides:
forEachChildin classNodeList<StateNode>- Parameters:
action- the consumer that accepts each child
-
-