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
A list which contains
StateNodes.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.internal.nodefeature.NodeList
NodeList.SetView<T extends Serializable> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStateNodeNodeList(StateNode node) Creates a new list for the given node. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInserts 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 booleanChecks 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, sizeMethods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach
-
Constructor Details
-
StateNodeNodeList
Creates a new list for the given node.- Parameters:
node- the node that the list belongs to
-
-
Method Details
-
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
Description copied from class:NodeListInserts an item at the given index of the list. -
addAll
Description copied from class:NodeListAdds all provided items to the end of the list. -
remove
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
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
-