Class BorderSpacing
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<BorderSpacing>
com.webfirmframework.wffweb.css.BorderSpacing
- All Implemented Interfaces:
CssProperty, Serializable, Cloneable
border-spacing: length|initial|inherit; The border-spacing property sets the distance between the borders of adjacent cells (only for the "separated borders" model). Default value: 0 Inherited: yes Animatable: yes Version: CSS2 JavaScript syntax: object.style.borderSpacing="15px"
- Since:
- 1.0.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThe0pxwill be set as the valueBorderSpacing(float horizontalVerticalValue, CssLengthUnit cssLengthUnit) BorderSpacing(float horizontalValue, CssLengthUnit horizontalCssLengthUnit, float verticalValue, CssLengthUnit verticalCssLengthUnit) BorderSpacing(BorderSpacing borderSpacing) BorderSpacing(String cssValue) -
Method Summary
Modifier and TypeMethodDescriptiongets the horizontal value in float value.gets the vertical value in float value.static booleanvalidates if the given cssValue is valid for this class.voidsets asinheritvoidsets asinitialsetCssValue(String cssValue) setValue(float horizontalVerticalValue, CssLengthUnit cssLengthUnit) setValue(float horizontalValue, CssLengthUnit horizontalCssLengthUnit, float verticalValue, CssLengthUnit verticalCssLengthUnit) toString()Methods inherited from class AbstractCssProperty
clone, getStateChangeInformer, isAlreadyInUse, setAlreadyInUse, setStateChangeInformer, toCssString
-
Field Details
-
INITIAL
- See Also:
-
INHERIT
- See Also:
-
-
Constructor Details
-
BorderSpacing
public BorderSpacing()The0pxwill be set as the value -
BorderSpacing
- Parameters:
cssValue- the css value to set.
-
BorderSpacing
- Parameters:
borderSpacing- theborderSpacingobject from which the cssValue to set.And,nullwill throwNullValueException
-
BorderSpacing
- Parameters:
horizontalVerticalValue- the value to set.cssLengthUnit- the value unit to set.- Since:
- 1.0.0
-
BorderSpacing
public BorderSpacing(float horizontalValue, CssLengthUnit horizontalCssLengthUnit, float verticalValue, CssLengthUnit verticalCssLengthUnit) - Parameters:
horizontalValue-horizontalCssLengthUnit-verticalValue-verticalCssLengthUnit-- Since:
- 1.0.0
-
-
Method Details
-
setValue
public BorderSpacing setValue(float horizontalValue, CssLengthUnit horizontalCssLengthUnit, float verticalValue, CssLengthUnit verticalCssLengthUnit) - Parameters:
horizontalValue-horizontalCssLengthUnit-verticalValue-verticalCssLengthUnit-- Returns:
- Since:
- 1.0.0
-
setValue
- Parameters:
horizontalVerticalValue-cssLengthUnit-- Returns:
- the current object
- Since:
- 1.0.0
-
getCssName
- Returns:
- the name portion in style, eg
align-contentfor stylealign-content: center.
-
getCssValue
- Returns:
- the value portion in style, eg
centerfor stylealign-content: center.
-
toString
-
getHorizontalValue
gets the horizontal value in float value.BorderSpacing#getHorizontalUnit()should be used to get the cssLengthUnit for this value.- Returns:
- the horizontal value in float or
nullif the value is any inbuilt value likeinherit. - Since:
- 1.0.0
-
getVerticalValue
gets the vertical value in float value.BorderSpacing#getVerticalUnit()should be used to get the cssLengthUnit for this value.- Returns:
- the vertical value in float or
nullif the value is any inbuilt value likeinherit. - Since:
- 1.0.0
-
getHorizontalUnit
- Returns:
- the cssLengthUnit
PX/PER, ornullif the value is any inbuilt value likeinherit. - Since:
- 1.0.0
-
getVerticalUnit
- Returns:
- the cssLengthUnit
PX/PER, ornullif the value is any inbuilt value likeinherit. - Since:
- 1.0.0
-
setCssValue
- Specified by:
setCssValuein classAbstractCssProperty<BorderSpacing>- Parameters:
cssValue- the value should be in the format of55pxor95%.nullis 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
-
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
-