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

Interface ChildElementConsumer

    • Method Summary

      All Methods
      Modifier and Type Method Description
      void accept​(Element child)

      This callback method is called when the request initiated by the Node.appendChild(Element...) method is successfully executed.

      default void onError​(Node<?> parent, String tag, Element previousSibling)

      This callback method is called when the requested client element cannot be found in the provided parent by the tag name after the previousSibling.

    • Method Detail

      • accept

        void accept​(Element child)

        This callback method is called when the request initiated by the Node.appendChild(Element...) method is successfully executed.

        The parameter value is the element created by the request.

        Specified by:

        accept in interface Consumer<Element>

        Parameters:

        child - the server side element mapped to the requested client-side element

      • onError

        default void onError​(Node<?> parent,
                             String tag,
                             Element previousSibling)

        This callback method is called when the requested client element cannot be found in the provided parent by the tag name after the previousSibling.

        Parameters:

        parent - the server side parent node, not null

        tag - the tag name of the requested element, not null

        previousSibling - the previous sibling element for the requested element, may be null