You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.internal.nodefeature.

Class ElementChildrenList

  • All Implemented Interfaces:

    Serializable

    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:

    Serialized Form

    • 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 class StateNodeNodeList

        Parameters:

        index - index to insert at

        node - the item to insert

      • get

        public StateNode get​(int index)

        Description copied from class: NodeList

        Gets the item at the given index.

        Overrides:

        get in class NodeList<StateNode>

        Parameters:

        index - the of the desired item

        Returns:

        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 class StateNodeNodeList

        Parameters:

        index - index of the item to remove

        Returns:

        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 class StateNodeNodeList

      • indexOf

        public int indexOf​(StateNode node)

        Description copied from class: NodeList

        Gets the position of a value in the list.

        Overrides:

        indexOf in class NodeList<StateNode>

        Parameters:

        node - the value to look for

        Returns:

        the position in the list or -1 if not found

      • size

        public int size()

        Description copied from class: NodeList

        Gets the number of items in this list.

        Overrides:

        size in class NodeList<StateNode>

        Returns:

        the number of items