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

Interface NodeVisitor

    • Nested Class Summary

      Nested Classes
      Modifier and Type Interface Description
      static class  NodeVisitor.ElementType

      The type of the element.

    • Method Detail

      • visit

        boolean visit​(NodeVisitor.ElementType type,
                      Element element)

        Visit the element using provided element type.

        Parameters:

        type - the element type

        element - the element to visit

        Returns:

        true to visit descendants, false to stop traversal

      • visit

        boolean visit​(ShadowRoot root)

        Visit the shadow root.

        Parameters:

        root - the shadow root to visit

        Returns:

        true to visit descendants, false to stop traversal