com.vaadin.flow.dom.

Interface NodeVisitor

    • Nested Class Summary

      Nested Classes
      Modifier and Type Interface and 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