Class BorderBottomWidth
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<BorderBottomWidth>
com.webfirmframework.wffweb.css.BorderBottomWidth
- All Implemented Interfaces:
CssProperty
,Serializable
,Cloneable
border-bottom-width: medium|thin|thick|length|initial|inherit; The border-bottom-width property sets the width of an element's bottom border. Note: Always declare the border-style property before the border-bottom-width property. An element must have borders before you can change the width. Default value: medium Inherited: no Animatable: yes Version: CSS1 JavaScript syntax: object.style.borderBottomWidth="5px"
- Since:
- 1.0.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThemedium
will be set as the valueBorderBottomWidth
(float percent) BorderBottomWidth
(float value, CssLengthUnit cssLengthUnit) BorderBottomWidth
(BorderBottomWidth borderBottomWidth) BorderBottomWidth
(String cssValue) -
Method Summary
Modifier and TypeMethodDescriptiongetUnit()
getValue()
gets the border-bottom-width inFloat
value.static boolean
validates if the given cssValue is valid for this class.void
sets asinherit
void
sets asinitial
void
sets asmedium
.void
sets asthick
.void
sets asthin
.setCssValue
(String cssValue) void
setPercent
(float percent) setValue
(float value, CssLengthUnit cssLengthUnit) toString()
Methods inherited from class com.webfirmframework.wffweb.css.core.AbstractCssProperty
clone, getStateChangeInformer, isAlreadyInUse, setAlreadyInUse, setStateChangeInformer, toCssString
-
Field Details
-
MEDIUM
- See Also:
-
THIN
- See Also:
-
THICK
- See Also:
-
INITIAL
- See Also:
-
INHERIT
- See Also:
-
-
Constructor Details
-
BorderBottomWidth
public BorderBottomWidth()Themedium
will be set as the value -
BorderBottomWidth
- Parameters:
cssValue
- the css value to set.
-
BorderBottomWidth
- Parameters:
borderBottomWidth
- theBorderBottomWidth
object from which the cssValue to set.And,null
will throwNullValueException
-
BorderBottomWidth
public BorderBottomWidth(float percent) - Parameters:
percent
- the percentage value to set. The cssLengthUnit will automatically set to %.- Since:
- 1.0.0
-
BorderBottomWidth
- Parameters:
value
-cssLengthUnit
-
-
-
Method Details
-
setValue
- Parameters:
value
-cssLengthUnit
-- Returns:
- the current object
- Since:
- 1.0.0
-
setPercent
public void setPercent(float percent) - Parameters:
percent
- the percent to set- Since:
- 1.0.0
-
getCssName
- Returns:
- the name portion in style, eg
align-content
for stylealign-content: center
.
-
getCssValue
- Returns:
- the value portion in style, eg
center
for stylealign-content: center
.
-
toString
-
getValue
gets the border-bottom-width inFloat
value.BorderBottomWidth#getUnit()
should be used to get the cssLengthUnit for this value.- Returns:
- the value in
Float
or null if the border-bottom-width is set asinitial
orinherit
. - Since:
- 1.0.0
-
getUnit
- Returns:
- the cssLengthUnit
PX
/PER
, ornull
if the value is any inbuilt value likeinherit
. - Since:
- 1.0.0
-
setCssValue
- Specified by:
setCssValue
in classAbstractCssProperty<BorderBottomWidth>
- Parameters:
cssValue
- the value should be in the format of55px
or95%
.null
is considered as an invalid value and it will throwNullValueException
.- 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
-
setAsMedium
public void setAsMedium()sets asmedium
.- Since:
- 1.0.0
-
setAsThin
public void setAsThin()sets asthin
.- Since:
- 1.0.0
-
setAsThick
public void setAsThick()sets asthick
.- Since:
- 1.0.0
-
isValid
validates if the given cssValue is valid for this class.- Parameters:
cssValue
- the value to check.- Returns:
- true if valid and false if invalid.
- Since:
- 1.0.0
-