Class CssContextNode

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<INode> childNodes
      The child nodes.
      private INode parentNode
      The parent node.
      private java.util.Map<java.lang.String,​java.lang.String> styles
      The styles.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChild​(INode node)
      Adds a child node.
      java.util.List<INode> childNodes()
      Gets the child nodes.
      java.util.Map<java.lang.String,​java.lang.String> getStyles()
      Gets the styles.
      INode parentNode()
      Gets the parent node.
      void setStyles​(java.util.Map<java.lang.String,​java.lang.String> stringStringMap)
      Sets the styles.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • childNodes

        private java.util.List<INode> childNodes
        The child nodes.
      • parentNode

        private INode parentNode
        The parent node.
      • styles

        private java.util.Map<java.lang.String,​java.lang.String> styles
        The styles.
    • Constructor Detail

      • CssContextNode

        public CssContextNode​(INode parentNode)
        Creates a new CssContextNode instance.
        Parameters:
        parentNode - the parent node
    • Method Detail

      • childNodes

        public java.util.List<INode> childNodes()
        Description copied from interface: INode
        Gets the child nodes.
        Specified by:
        childNodes in interface INode
        Returns:
        a list of INode instances.
      • addChild

        public void addChild​(INode node)
        Description copied from interface: INode
        Adds a child node.
        Specified by:
        addChild in interface INode
        Parameters:
        node - a child node that will be added to the current node
      • parentNode

        public INode parentNode()
        Description copied from interface: INode
        Gets the parent node.
        Specified by:
        parentNode in interface INode
        Returns:
        the parent node
      • setStyles

        public void setStyles​(java.util.Map<java.lang.String,​java.lang.String> stringStringMap)
        Description copied from interface: IStylesContainer
        Sets the styles.
        Specified by:
        setStyles in interface IStylesContainer
        Parameters:
        stringStringMap - a Map with style keys and values.
      • getStyles

        public java.util.Map<java.lang.String,​java.lang.String> getStyles()
        Description copied from interface: IStylesContainer
        Gets the styles.
        Specified by:
        getStyles in interface IStylesContainer
        Returns:
        the styles