Package com.webfirmframework.wffweb.css
Class BorderColorCssValues
java.lang.Object
com.webfirmframework.wffweb.data.AbstractBean<BorderColorCssValues>
com.webfirmframework.wffweb.css.BorderColorCssValues
- All Implemented Interfaces:
Bean
,StateChangeInformer<Bean>
,Serializable
,Cloneable
public class BorderColorCssValues
extends AbstractBean<BorderColorCssValues>
implements StateChangeInformer<Bean>
- Since:
- 1.0.0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTheinitial
will be set as the valueBorderColorCssValues
(BorderColorCssValues borderColorCssValue) BorderColorCssValues
(HslaCssValue hslaCssValue) BorderColorCssValues
(HslCssValue hslCssValue) BorderColorCssValues
(RgbaCssValue rgbaCssValue) BorderColorCssValues
(RgbCssValue rgbCssValue) BorderColorCssValues
(String cssValue) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
gets the value,getCssValue
method can also be used to get the same value.static boolean
void
sets astransparent
void
setHslaCssValue
(HslaCssValue hslaCssValue) void
setHslCssValue
(HslCssValue hslCssValue) void
setRgbaCssValue
(RgbaCssValue rgbaCssValue) void
setRgbCssValue
(RgbCssValue rgbCssValue) void
stateChanged
(Bean stateChangedObject) toString()
Methods inherited from class com.webfirmframework.wffweb.data.AbstractBean
getStateChangeInformer, isAlreadyInUse, setAlreadyInUse, setStateChangeInformer
-
Field Details
-
TRANSPARENT
- See Also:
-
-
Constructor Details
-
BorderColorCssValues
public BorderColorCssValues()Theinitial
will be set as the value -
BorderColorCssValues
- Parameters:
cssValue
- the css value to set.
-
BorderColorCssValues
- Parameters:
borderColorCssValue
- theBorderColorCssValues
object from which the cssValue to set.And,null
will throwNullValueException
-
BorderColorCssValues
- Parameters:
rgbCssValue
-
-
BorderColorCssValues
- Parameters:
rgbaCssValue
-
-
BorderColorCssValues
- Parameters:
hslCssValue
-
-
BorderColorCssValues
- Parameters:
hslaCssValue
-
-
-
Method Details
-
setRgbaCssValue
- Parameters:
rgbaCssValue
-- Since:
- 1.0.0
-
setHslaCssValue
- Parameters:
hslaCssValue
- the hslaCssValue to set.- Since:
- 1.0.0
-
toString
-
getValue
gets the value,getCssValue
method can also be used to get the same value. -
setValue
- 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
.- 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
-
setHslCssValue
- Parameters:
hslCssValue
- the hslCssValue to set- Since:
- 1.0.0
-