public class ElementChildrenList extends StateNodeNodeList
For internal use only. May be renamed or removed in a future release.
NodeList.SetView<T extends Serializable>
Constructor and Description |
---|
ElementChildrenList(StateNode node)
Creates a new element children list for the given node.
|
Modifier and Type | Method and 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.
|
addAll, forEachChild, isNodeValues
add, collectChanges, generateChangesFromEmpty, getChangeTracker, iterator, onDetach
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach
public ElementChildrenList(StateNode node)
node
- the node that the list belongs topublic void add(int index, StateNode node)
NodeList
add
in class StateNodeNodeList
index
- index to insert atnode
- the item to insertpublic StateNode get(int index)
NodeList
public StateNode remove(int index)
NodeList
remove
in class StateNodeNodeList
index
- index of the item to removepublic void clear()
NodeList
clear
in class StateNodeNodeList
public int indexOf(StateNode node)
NodeList
Copyright © 2025. All rights reserved.