com.vaadin.flow.internal.nodefeature.

Class ElementChildrenList

    • 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