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
Modifier and TypeInterfaceDescriptionstatic enum
The type of the element. -
Method Summary
Modifier and TypeMethodDescriptionboolean
visit
(NodeVisitor.ElementType type, Element element) Visit theelement
using provided elementtype
.boolean
visit
(ShadowRoot root) Visit the shadowroot
.
-
Method Details
-
visit
Visit theelement
using provided elementtype
.- Parameters:
type
- the element typeelement
- the element to visit- Returns:
true
to visit descendants,false
to stop traversal
-
visit
Visit the shadowroot
.- Parameters:
root
- the shadow root to visit- Returns:
true
to visit descendants,false
to stop traversal
-