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

Class StateNodeNodeList

    • Constructor Detail

      • StateNodeNodeList

        protected StateNodeNodeList​(StateNode node)

        Creates a new list for the given node.

        Parameters:

        node - the node that the list belongs to

    • Method Detail

      • isNodeValues

        protected boolean isNodeValues()

        Description copied from class: NodeList

        Checks whether this list contains node values.

        Overrides:

        isNodeValues in class NodeList<StateNode>

        Returns:

        true if this list contains node values; false if this list contains primitive values

      • add

        protected void add​(int index,
                           StateNode item)

        Description copied from class: NodeList

        Inserts an item at the given index of the list.

        Overrides:

        add in class NodeList<StateNode>

        Parameters:

        index - index to insert at

        item - the item to insert

      • addAll

        protected void addAll​(Collection<? extends StateNode> items)

        Description copied from class: NodeList

        Adds all provided items to the end of the list.

        Overrides:

        addAll in class NodeList<StateNode>

        Parameters:

        items - a collection of items to add, not null

      • remove

        protected StateNode remove​(int index)

        Description copied from class: NodeList

        Removes the item at the given index.

        Overrides:

        remove in class NodeList<StateNode>

        Parameters:

        index - index of the item to remove

        Returns:

        the element previously at the specified position

      • clear

        protected void clear()

        Description copied from class: NodeList

        Removes all nodes, including those not known by the server.

        Overrides:

        clear in class NodeList<StateNode>

      • forEachChild

        public void forEachChild​(Consumer<StateNode> action)

        Description copied from class: NodeFeature

        Passes each child node instance to the given consumer.

        Overrides:

        forEachChild in class NodeList<StateNode>

        Parameters:

        action - the consumer that accepts each child