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
StateNode
s.
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
ConstructorsModifierConstructorDescriptionprotected
StateNodeNodeList
(StateNode node) Creates a new list for the given node. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Inserts an item at the given index of the list.protected void
addAll
(Collection<? extends StateNode> items) Adds all provided items to the end of the list.protected void
clear()
Removes all nodes, including those not known by the server.void
forEachChild
(Consumer<StateNode> action) Passes each child node instance to the given consumer.protected boolean
Checks whether this list contains node values.protected StateNode
remove
(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 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:NodeList
Checks whether this list contains node values.- Overrides:
isNodeValues
in classNodeList<StateNode>
- Returns:
true
if this list contains node values;false
if this list contains primitive values
-
add
Description copied from class:NodeList
Inserts an item at the given index of the list. -
addAll
Description copied from class:NodeList
Adds all provided items to the end of the list. -
remove
Description copied from class:NodeList
Removes the item at the given index. -
clear
protected void clear()Description copied from class:NodeList
Removes all nodes, including those not known by the server. -
forEachChild
Description copied from class:NodeFeature
Passes each child node instance to the given consumer.- Overrides:
forEachChild
in classNodeList<StateNode>
- Parameters:
action
- the consumer that accepts each child
-