public class ShadowRoot extends Node<ShadowRoot>
The root can be created by Element.attachShadow()
.
Element.attachShadow()
,
Serialized FormModifier 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, setChild
public static ShadowRoot get(StateNode node)
node
- the state node, not null
null
public static boolean isShadowRoot(StateNode node)
node
is a shadow root node.node
- the state node, not null
true
if it's a shadow root, not null
public Node<?> getParentNode()
Node
getParentNode
in class Node<ShadowRoot>
public Element getHost()
protected ShadowRoot getSelf()
Node
getSelf
in class Node<ShadowRoot>
public ShadowRootStateProvider getStateProvider()
Node
This method is meant for internal use only.
getStateProvider
in class Node<ShadowRoot>
Copyright © 2020. All rights reserved.