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

Class BasicTextElementStateProvider

    • Method Detail

      • createStateNode

        public static StateNode createStateNode​(String text)

        Creates a compatible text state node using the given text.

        Parameters:

        text - the text to use, not null

        Returns:

        a initialized and compatible state node

      • supports

        public boolean supports​(StateNode node)

        Description copied from interface: ElementStateProvider

        Checks if the element state provider supports the given state node.

        Parameters:

        node - the state node to check

        Returns:

        true if the element state provider is compatible with the given state node, false otherwise

      • getParent

        public Node<?> getParent​(StateNode node)

        Description copied from interface: ElementStateProvider

        Gets the parent element.

        Parameters:

        node - the node containing the data

        Returns:

        the parent element or null if the element has no parent