Class BorderTopColor

  • All Implemented Interfaces:
    CssProperty, StateChangeInformer<Bean>, java.io.Serializable, java.lang.Cloneable


    public class BorderTopColor
    extends AbstractCssProperty<BorderTopColor>
    implements StateChangeInformer<Bean>
     border-top-color: color|transparent|initial|inherit;
    
      The border-top-color property sets the color of an element's top border.
    
     Note: Always declare the border-style property before the border-top-color property. An element must have borders before you can change the color.
     Default value:  The current color of the element
     Inherited:      no
     Animatable:     yes
     Version:        CSS1
     JavaScript syntax:      object.style.borderTopColor="blue"
     
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Field Detail

      • LOGGER

        public static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • BorderTopColor

        public BorderTopColor​()
        The initial will be set as the value
      • BorderTopColor

        public BorderTopColor​(java.lang.String cssValue)
        Parameters:
        cssValue - the css value to set.
      • BorderTopColor

        public BorderTopColor​(BorderTopColor borderTopColor)
        Parameters:
        borderTopColor - the BorderTopColor object from which the cssValue to set.And, null will throw NullValueException
      • BorderTopColor

        public BorderTopColor​(RgbCssValue rgbCssValue)
        Parameters:
        rgbCssValue -
    • Method Detail

      • setValue

        public BorderTopColor setValue​(java.lang.String value)
        the color/color code to set. The alternative method setCssValue can also be used.
        Parameters:
        value -
        Returns:
        the current object
        Since:
        1.0.0
      • getCssName

        public java.lang.String getCssName​()
        Specified by:
        getCssName in interface CssProperty
        Returns:
        the name portion in style, eg align-content for style align-content: center.
      • getCssValue

        public java.lang.String getCssValue​()
        Specified by:
        getCssValue in interface CssProperty
        Returns:
        the value portion in style, eg center for style align-content: center.
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object
      • getValue

        public java.lang.String getValue​()
        gets the value, getCssValue method can also be used to get the same value.
        Returns:
        the value in String.
        Since:
        1.0.0
      • setCssValue

        public BorderTopColor setCssValue​(java.lang.String cssValue)
        Specified by:
        setCssValue in class AbstractCssProperty<BorderTopColor>
        Parameters:
        cssValue - the value should be a color/color code/rgb, for example #0000ff. null is considered as an invalid value and it will throw NullValueException.And an empty string is also considered as an invalid value and it will throw InvalidValueException.
        Returns:
        the current object.
        Since:
        1.0.0
      • setAsInitial

        public void setAsInitial​()
        sets as initial
        Since:
        1.0.0
      • setAsInherit

        public void setAsInherit​()
        sets as inherit
        Since:
        1.0.0
      • setAsTransparent

        public void setAsTransparent​()
        sets as transparent
        Since:
        1.0.0
      • isValid

        public static boolean isValid​(java.lang.String cssValue)
        Parameters:
        cssValue -
        Returns:
        true if the given cssValue is valid.
        Since:
        1.0.0
      • getRgbCssValue

        public RgbCssValue getRgbCssValue​()
        Returns:
        the rgbCssValue
        Since:
        1.0.0
      • getRgbaCssValue

        public RgbaCssValue getRgbaCssValue​()
        Returns:
        the rgbaCssValue
        Since:
        1.0.0
      • getHslCssValue

        public HslCssValue getHslCssValue​()
        Returns:
        the hslCssValue
        Since:
        1.0.0
      • getHslaCssValue

        public HslaCssValue getHslaCssValue​()
        Returns:
        the hslaCssValue
        Since:
        1.0.0
      • setRgbCssValue

        public void setRgbCssValue​(RgbCssValue rgbCssValue)
        Parameters:
        rgbCssValue - the rgbCssValue to set
        Since:
        1.0.0
      • setRgbaCssValue

        public void setRgbaCssValue​(RgbaCssValue rgbaCssValue)
        Parameters:
        rgbaCssValue - the rgbaCssValue to set
        Since:
        1.0.0
      • setHslCssValue

        public void setHslCssValue​(HslCssValue hslCssValue)
        Parameters:
        hslCssValue - the hslCssValue to set
        Since:
        1.0.0
      • setHslaCssValue

        public void setHslaCssValue​(HslaCssValue hslaCssValue)
        Parameters:
        hslaCssValue - the hslaCssValue to set
        Since:
        1.0.0
      • hasPredefinedConstantValue

        public boolean hasPredefinedConstantValue​()
        Returns:
        true if its cssValue is any of the values initial, inherit or transparent.
        Since:
        1.0.0