public class VirtualChildrenList extends StateNodeNodeList
For internal use only. May be renamed or removed in a future release.
NodeList.SetView<T extends Serializable>| Constructor and Description |
|---|
VirtualChildrenList(StateNode node)
Creates a new element virtual children list for the given node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
StateNode node,
String type)
Inserts an item supplied with payload type at the given index of the
list.
|
void |
add(int index,
StateNode node,
String type,
elemental.json.JsonValue payload)
Inserts an item supplied with payload data at the given index of the
list.
|
void |
add(int index,
StateNode node,
String type,
String payload)
Inserts an item supplied with payload data at the given index of the
list.
|
void |
append(StateNode node,
String type)
Appends an item supplied with payload type as last in the list.
|
void |
append(StateNode node,
String type,
elemental.json.JsonValue payload)
Appends an item supplied with payload data as last in the list.
|
void |
append(StateNode node,
String type,
String payload)
Appends an item supplied with payload data as last in the list.
|
protected 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.
|
Iterator<StateNode> |
iterator()
Gets an iterator returning all items in this list.
|
StateNode |
remove(int index)
Removes the item at the given index.
|
int |
size()
Gets the number of items in this list.
|
add, addAll, forEachChild, isNodeValuesadd, collectChanges, generateChangesFromEmpty, getChangeTracker, onDetachallowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttachpublic VirtualChildrenList(StateNode node)
node - the node that the list belongs topublic void add(int index,
StateNode node,
String type,
String payload)
index - index to insert atnode - the item to appendtype - the payload typepayload - the payload datapublic void add(int index,
StateNode node,
String type,
elemental.json.JsonValue payload)
index - index to insert atnode - the item to appendtype - the payload typepayload - the payload datapublic void add(int index,
StateNode node,
String type)
index - index to insert atnode - the item to appendtype - the payload typepublic void append(StateNode node, String type, String payload)
node - the item to appendtype - the payload typepayload - the payload datapublic void append(StateNode node, String type, elemental.json.JsonValue payload)
node - the item to appendtype - the payload typepayload - the payload datapublic void append(StateNode node, String type)
node - the item to appendtype - the payload typepublic StateNode get(int index)
NodeListpublic Iterator<StateNode> iterator()
NodeListpublic int indexOf(StateNode node)
NodeListpublic StateNode remove(int index)
NodeListremove in class StateNodeNodeListindex - index of the item to removeprotected void clear()
NodeListclear in class StateNodeNodeListCopyright © 2025. All rights reserved.