com.vaadin.flow.internal.nodefeature.
Class ElementChildrenList
- java.lang.Object
-
- com.vaadin.flow.internal.nodefeature.NodeFeature
-
- com.vaadin.flow.internal.nodefeature.NodeList<StateNode>
-
- com.vaadin.flow.internal.nodefeature.StateNodeNodeList
-
- com.vaadin.flow.internal.nodefeature.ElementChildrenList
-
All Implemented Interfaces:
public class ElementChildrenList extends StateNodeNodeList
List of nodes describing the child elements of an element.
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
Constructors Constructor Description ElementChildrenList(StateNode node)
Creates a new element children list for the given node.
-
Method Summary
All Methods Modifier and Type Method Description void
add(int index, StateNode node)
Inserts an item at the given index of the list.
void
clear()
Removes all nodes, including those not known by the server.
StateNode
get(int index)
Gets the item at the given index.
int
indexOf(StateNode node)
Gets the position of a value in the list.
StateNode
remove(int index)
Removes the item at the given index.
int
size()
Gets the number of items in this list.
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.StateNodeNodeList
addAll, forEachChild, isNodeValues
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeList
add, collectChanges, generateChangesFromEmpty, getChangeTracker, iterator, onDetach
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach
-
-
-
-
Constructor Detail
-
ElementChildrenList
public ElementChildrenList(StateNode node)
Creates a new element children list for the given node.
Parameters:
node
- the node that the list belongs to
-
-
Method Detail
-
add
public void add(int index, StateNode node)
Description copied from class:
NodeList
Inserts an item at the given index of the list.
Overrides:
add
in classStateNodeNodeList
Parameters:
index
- index to insert atnode
- the item to insert
-
get
public StateNode get(int index)
Description copied from class:
NodeList
Gets the item at the given index.
-
remove
public StateNode remove(int index)
Description copied from class:
NodeList
Removes the item at the given index.
Overrides:
remove
in classStateNodeNodeList
Parameters:
index
- index of the item to removeReturns:
the element previously at the specified position
-
clear
public void clear()
Description copied from class:
NodeList
Removes all nodes, including those not known by the server.
Overrides:
clear
in classStateNodeNodeList
-
indexOf
public int indexOf(StateNode node)
Description copied from class:
NodeList
Gets the position of a value in the list.
-
-