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, isNodeValuesadd, collectChanges, generateChangesFromEmpty, getChangeTracker, iterator, onDetachallowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttachpublic ElementChildrenList(StateNode node)
node - the node that the list belongs topublic void add(int index,
StateNode node)
NodeListadd in class StateNodeNodeListindex - index to insert atnode - the item to insertpublic StateNode get(int index)
NodeListpublic StateNode remove(int index)
NodeListremove in class StateNodeNodeListindex - index of the item to removepublic void clear()
NodeListclear in class StateNodeNodeListpublic int indexOf(StateNode node)
NodeListCopyright © 2025. All rights reserved.