Class VirtualChildrenList
- 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.VirtualChildrenList
-
- All Implemented Interfaces:
Serializable
public class VirtualChildrenList extends StateNodeNodeList
List of nodes describing the virtually connected 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:
- Serialized Form
-
-
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 VirtualChildrenList(StateNode node)Creates a new element virtual children list for the given node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, StateNode node, String type)Inserts an item supplied with payload type at the given index of the list.voidadd(int index, StateNode node, String type, elemental.json.JsonValue payload)Inserts an item supplied with payload data at the given index of the list.voidadd(int index, StateNode node, String type, String payload)Inserts an item supplied with payload data at the given index of the list.voidappend(StateNode node, String type)Appends an item supplied with payload type as last in the list.voidappend(StateNode node, String type, elemental.json.JsonValue payload)Appends an item supplied with payload data as last in the list.voidappend(StateNode node, String type, String payload)Appends an item supplied with payload data as last in the list.protected voidclear()Removes all nodes, including those not known by the server.StateNodeget(int index)Gets the item at the given index.intindexOf(StateNode node)Gets the position of a value in the list.Iterator<StateNode>iterator()Gets an iterator returning all items in this list.StateNoderemove(int index)Removes the item at the given index.intsize()Gets the number of items in this list.-
Methods inherited from class com.vaadin.flow.internal.nodefeature.StateNodeNodeList
add, addAll, forEachChild, isNodeValues
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeList
add, collectChanges, generateChangesFromEmpty, getChangeTracker, onDetach
-
Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach
-
-
-
-
Constructor Detail
-
VirtualChildrenList
public VirtualChildrenList(StateNode node)
Creates a new element virtual 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, String type, String payload)Inserts an item supplied with payload data at the given index of the list.- Parameters:
index- index to insert atnode- the item to appendtype- the payload typepayload- the payload data
-
add
public 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.- Parameters:
index- index to insert atnode- the item to appendtype- the payload typepayload- the payload data
-
add
public void add(int index, StateNode node, String type)Inserts an item supplied with payload type at the given index of the list.- Parameters:
index- index to insert atnode- the item to appendtype- the payload type
-
append
public void append(StateNode node, String type, String payload)
Appends an item supplied with payload data as last in the list.- Parameters:
node- the item to appendtype- the payload typepayload- the payload data
-
append
public void append(StateNode node, String type, elemental.json.JsonValue payload)
Appends an item supplied with payload data as last in the list.- Parameters:
node- the item to appendtype- the payload typepayload- the payload data
-
append
public void append(StateNode node, String type)
Appends an item supplied with payload type as last in the list.- Parameters:
node- the item to appendtype- the payload type
-
get
public StateNode get(int index)
Description copied from class:NodeListGets the item at the given index.
-
iterator
public Iterator<StateNode> iterator()
Description copied from class:NodeListGets an iterator returning all items in this list.
-
indexOf
public int indexOf(StateNode node)
Description copied from class:NodeListGets the position of a value in the list.
-
remove
public StateNode remove(int index)
Description copied from class:NodeListRemoves the item at the given index.- Overrides:
removein classStateNodeNodeList- Parameters:
index- index of the item to remove- Returns:
- the element previously at the specified position
-
clear
protected void clear()
Description copied from class:NodeListRemoves all nodes, including those not known by the server.- Overrides:
clearin classStateNodeNodeList
-
-