com.vaadin.flow.internal.nodefeature.

Class ShadowRootData

    • Constructor Detail

      • ShadowRootData

        public ShadowRootData(StateNode node)

        Creates a new element data map for the given node.

        Parameters:

        node - the node that the map belongs to

    • Method Detail

      • getKey

        protected String getKey()

        Description copied from class: NodeValue

        Gets the key that should be used when the value of this feature is sent to the client.

        The key is fetched on demand from the sub class instead of e.g. requiring it as a constructor parameter to avoid storing an additional member field in each instance.

        Specified by:

        getKey in class NodeValue<StateNode>

        Returns:

        the key value, not null

      • setShadowRoot

        public void setShadowRoot(StateNode node)
      • getShadowRoot

        public StateNode getShadowRoot()