public class ShadowRoot extends Node<ShadowRoot>
The root can be created by Element.attachShadow().
Element.attachShadow(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
static ShadowRoot |
get(StateNode node)
Gets the shadow root instance mapped to the given state node.
|
Element |
getHost() |
Node<?> |
getParentNode()
Gets the parent node.
|
protected ShadowRoot |
getSelf()
Gets the narrow typed reference to this object.
|
ShadowRootStateProvider |
getStateProvider()
Gets the state provider for this element.
|
static boolean |
isShadowRoot(StateNode node)
Checks whether the given
node is a shadow root node. |
accept, appendChild, appendVirtualChild, ensureChildHasParent, equals, getChild, getChildCount, getChildren, getNode, hashCode, indexOfChild, insertChild, isVirtualChild, removeAllChildren, removeChild, removeChild, removeVirtualChild, setChildpublic static ShadowRoot get(StateNode node)
node - the state node, not nullnullpublic static boolean isShadowRoot(StateNode node)
node is a shadow root node.node - the state node, not nulltrue if it's a shadow root, not nullpublic Node<?> getParentNode()
NodegetParentNode in class Node<ShadowRoot>public Element getHost()
protected ShadowRoot getSelf()
NodegetSelf in class Node<ShadowRoot>public ShadowRootStateProvider getStateProvider()
NodeThis method is meant for internal use only.
getStateProvider in class Node<ShadowRoot>Copyright © 2025. All rights reserved.