com.vaadin.flow.internal.nodefeature.
Class StateNodeNodeList
- java.lang.Object
-
- com.vaadin.flow.internal.nodefeature.NodeFeature
-
- com.vaadin.flow.internal.nodefeature.NodeList<StateNode>
-
- com.vaadin.flow.internal.nodefeature.StateNodeNodeList
-
-
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 protected
StateNodeNodeList(StateNode node)
Creates a new list for the given node.
-
Method Summary
All Methods Modifier and Type Method Description protected void
add(int index, StateNode item)
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
isNodeValues()
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 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:
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
protected void add(int index, StateNode item)
Description copied from class:
NodeList
Inserts an item at the given index of the list.
-
addAll
protected void addAll(Collection<? extends StateNode> items)
Description copied from class:
NodeList
Adds all provided items to the end of the list.
-
remove
protected StateNode remove(int index)
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
public void forEachChild(Consumer<StateNode> action)
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
-
-