Package com.webfirmframework.wffweb.css
Class BorderRightColor
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<BorderRightColor>
com.webfirmframework.wffweb.css.BorderRightColor
- All Implemented Interfaces:
CssProperty
,StateChangeInformer<Bean>
,Serializable
,Cloneable
public class BorderRightColor
extends AbstractCssProperty<BorderRightColor>
implements StateChangeInformer<Bean>
border-right-color: color|transparent|initial|inherit; The border-right-color property sets the color of an element's right border. Note: Always declare the border-style property before the border-right-color property. An element must have borders before you can change the color. Default value: black Inherited: no Animatable: yes Version: CSS1 JavaScript syntax: object.style.borderRightColor="blue"
- Since:
- 1.0.0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTheinitial
will be set as the valueBorderRightColor
(BorderRightColor borderRightColor) BorderRightColor
(RgbCssValue rgbCssValue) BorderRightColor
(String cssValue) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
gets the value,getCssValue
method can also be used to get the same value.boolean
static boolean
void
sets asinherit
void
sets asinitial
void
sets astransparent
setCssValue
(String cssValue) void
setHslaCssValue
(HslaCssValue hslaCssValue) void
setHslCssValue
(HslCssValue hslCssValue) void
setRgbaCssValue
(RgbaCssValue rgbaCssValue) void
setRgbCssValue
(RgbCssValue rgbCssValue) the color/color code to set.void
stateChanged
(Bean stateChangedObject) toString()
Methods inherited from class com.webfirmframework.wffweb.css.core.AbstractCssProperty
clone, getStateChangeInformer, isAlreadyInUse, setAlreadyInUse, setStateChangeInformer, toCssString
-
Field Details
-
INITIAL
- See Also:
-
INHERIT
- See Also:
-
TRANSPARENT
- See Also:
-
-
Constructor Details
-
BorderRightColor
public BorderRightColor()Theinitial
will be set as the value -
BorderRightColor
- Parameters:
cssValue
- the css value to set.
-
BorderRightColor
- Parameters:
borderRightColor
- theBorderRightColor
object from which the cssValue to set.And,null
will throwNullValueException
-
BorderRightColor
- Parameters:
rgbCssValue
-
-
-
Method Details
-
setValue
the color/color code to set. The alternative methodsetCssValue
can also be used.- Parameters:
value
-- Returns:
- the current object
- Since:
- 1.0.0
-
getCssName
- Specified by:
getCssName
in interfaceCssProperty
- Returns:
- the name portion in style, eg
align-content
for stylealign-content: center
.
-
getCssValue
- Specified by:
getCssValue
in interfaceCssProperty
- Returns:
- the value portion in style, eg
center
for stylealign-content: center
.
-
toString
-
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
- Specified by:
setCssValue
in classAbstractCssProperty<BorderRightColor>
- Parameters:
cssValue
- the value should be a color/color code/rgb, for example#0000ff
.null
is considered as an invalid value and it will throwNullValueException
.And an empty string is also considered as an invalid value and it will throwInvalidValueException
.- Returns:
- the current object.
- Since:
- 1.0.0
-
setAsInitial
public void setAsInitial()sets asinitial
- Since:
- 1.0.0
-
setAsInherit
public void setAsInherit()sets asinherit
- Since:
- 1.0.0
-
setAsTransparent
public void setAsTransparent()sets astransparent
- Since:
- 1.0.0
-
isValid
- Parameters:
cssValue
-- Returns:
- true if the given
cssValue
is valid. - Since:
- 1.0.0
-
stateChanged
- Specified by:
stateChanged
in interfaceStateChangeInformer<Bean>
-
getRgbCssValue
- Returns:
- the rgbCssValue
- Since:
- 1.0.0
-
getRgbaCssValue
- Returns:
- the rgbaCssValue
- Since:
- 1.0.0
-
getHslCssValue
- Returns:
- the hslCssValue
- Since:
- 1.0.0
-
getHslaCssValue
- Returns:
- the hslaCssValue
- Since:
- 1.0.0
-
setRgbCssValue
- Parameters:
rgbCssValue
- the rgbCssValue to set- Since:
- 1.0.0
-
setRgbaCssValue
- Parameters:
rgbaCssValue
- the rgbaCssValue to set- Since:
- 1.0.0
-
setHslCssValue
- Parameters:
hslCssValue
- the hslCssValue to set- Since:
- 1.0.0
-
setHslaCssValue
- 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
-