Class ShadowRoot

    • Method Detail

      • get

        public static ShadowRoot get​(StateNode node)
        Gets the shadow root instance mapped to the given state node.
        Parameters:
        node - the state node, not null
        Returns:
        the shadow root for the node, not null
      • isShadowRoot

        public static boolean isShadowRoot​(StateNode node)
        Checks whether the given node is a shadow root node.
        Parameters:
        node - the state node, not null
        Returns:
        true if it's a shadow root, not null
      • getParentNode

        public Node<?> getParentNode()
        Description copied from class: Node
        Gets the parent node.
        Overrides:
        getParentNode in class Node<ShadowRoot>
        Returns:
        the parent node or null if this element does not have a parent
      • getHost

        public Element getHost()
      • getSelf

        protected ShadowRoot getSelf()
        Description copied from class: Node
        Gets the narrow typed reference to this object.
        Specified by:
        getSelf in class Node<ShadowRoot>
        Returns:
        this object casted to its type
      • getStateProvider

        public ShadowRootStateProvider getStateProvider()
        Description copied from class: Node
        Gets the state provider for this element.

        This method is meant for internal use only.

        Overrides:
        getStateProvider in class Node<ShadowRoot>
        Returns:
        the state provider for this element