We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.dom.
Package com.vaadin.flow.dom
Interface NodeVisitor
public interface NodeVisitor
Element API node visitor interface.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
The type of the element.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
visit
(NodeVisitor.ElementType type, Element element) Visit the
element
using provided elementtype
.boolean
visit
(ShadowRoot root) Visit the shadow
root
.
-
Method Details
-
visit
Visit the
element
using provided elementtype
.Parameters:
type
- the element typeelement
- the element to visitReturns:
true
to visit descendants,false
to stop traversal -
visit
Visit the shadow
root
.Parameters:
root
- the shadow root to visitReturns:
true
to visit descendants,false
to stop traversal
-