Class BorderImageWidth
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<BorderImageWidth>
com.webfirmframework.wffweb.css.css3.BorderImageWidth
- All Implemented Interfaces:
 CssProperty,Serializable,Cloneable
 border-image-width: number|%|auto|initial|inherit;
 The border-image-width property sets the width of an element's four borders. This property can have from one to four values.
 Examples:
     border-image-width:5px 10px 15px 10px;
         top border is 5px
         right border is 10px
         bottom border is 15px
         border is 10px
     border-image-width:5px 10px 15px;
         top border is 5px
         right and left borders are 10px
         bottom border is 15px
     border-image-width:5px 10px;
         top and bottom borders are 5px
         right and left borders are 10px
     border-image-width:5px;
         all four borders are 5px
 The border-image-width property specifies the width of the border image.
 Tip: Also look at the border-image property (a shorthand property for setting all the border-image-* properties).
 Default value:  1
 Inherited:      no
 Animatable:     no
 Version:        CSS3
 JavaScript syntax:      object.style.borderImageWidth="20px"
 - Since:
 - 1.0.0
 - See Also:
 
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionThe1will be set as the valueBorderImageWidth(float percent) BorderImageWidth(float value, CssLengthUnit cssLengthUnit) BorderImageWidth(BorderImageWidth bottom) BorderImageWidth(String cssValue)  - 
Method Summary
Modifier and TypeMethodDescriptiongetLeft()protected static StringgetProducedCssValue(Float top, CssLengthUnit topUnit, Float right, CssLengthUnit rightUnit, Float bottom, CssLengthUnit bottomUnit, Float left, CssLengthUnit leftUnit) getRight()getTop()booleanstatic booleanvalidates if the given cssValue is valid for this class.voidsets asauto.voidsets asinheritvoidsets asinitialvoidsetBorderImageTopRightBottomLeft(Float top, CssLengthUnit topUnit, Float right, CssLengthUnit rightUnit, Float bottom, CssLengthUnit bottomUnit, Float left, CssLengthUnit leftUnit) voidsetBorderImageTopRightBottomLeft(Float top, Float right, Float bottom, Float left, CssLengthUnit unit) sets the top, right, bottom and left inBorderImageWidth.voidsetBottom(Float bottom, CssLengthUnit bottomUnit) setCssValue(String cssValue) voidsetLeft(Float left, CssLengthUnit leftUnit) voidsetPercent(float percent) voidsetRight(Float right, CssLengthUnit rightUnit) voidsetTop(Float top, CssLengthUnit topUnit) toString()Methods inherited from class com.webfirmframework.wffweb.css.core.AbstractCssProperty
clone, getStateChangeInformer, isAlreadyInUse, setAlreadyInUse, setStateChangeInformer, toCssString 
- 
Field Details
- 
AUTO
- See Also:
 
 - 
INITIAL
- See Also:
 
 - 
INHERIT
- See Also:
 
 
 - 
 - 
Constructor Details
- 
BorderImageWidth
public BorderImageWidth()The1will be set as the value - 
BorderImageWidth
- Parameters:
 cssValue- the css value to set.
 - 
BorderImageWidth
- Parameters:
 bottom- theBorderBottomWidthobject from which the cssValue to set.And,nullwill throwNullValueException
 - 
BorderImageWidth
public BorderImageWidth(float percent) - Parameters:
 percent- the percentage value to set. The cssLengthUnit will automatically set to %.- Since:
 - 1.0.0
 
 - 
BorderImageWidth
- Parameters:
 value-cssLengthUnit-
 
 - 
 - 
Method Details
- 
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-contentfor stylealign-content: center. 
 - 
getCssValue
- Returns:
 - the value portion in style, eg 
centerfor stylealign-content: center. 
 - 
toString
 - 
setCssValue
- Specified by:
 setCssValuein classAbstractCssProperty<BorderImageWidth>- 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
 
 - 
setAsAuto
public void setAsAuto()sets asauto.- Since:
 - 1.0.0
 
 - 
setBorderImageTopRightBottomLeft
public void setBorderImageTopRightBottomLeft(Float top, Float right, Float bottom, Float left, CssLengthUnit unit) sets the top, right, bottom and left inBorderImageWidth.- Parameters:
 top- the value for top. The valueautowill be assigned for null value.right- the value for right. The valueautowill be assigned for null value.bottom- the value for bottom. The valueautowill be assigned for null value.left- the value for left. The valueautowill be assigned for null value.unit- theCssLengthUnitfor all of the given top, right, bottom and left values.- Since:
 - 1.0.0
 
 - 
setBorderImageTopRightBottomLeft
public void setBorderImageTopRightBottomLeft(Float top, CssLengthUnit topUnit, Float right, CssLengthUnit rightUnit, Float bottom, CssLengthUnit bottomUnit, Float left, CssLengthUnit leftUnit)  - 
setTop
- Parameters:
 top- the top to set- Since:
 - 1.0.0
 
 - 
setRight
- Parameters:
 right- the right to setrightUnit-- Since:
 - 1.0.0
 
 - 
setBottom
- Parameters:
 bottom- the bottom to setbottomUnit-- Since:
 - 1.0.0
 
 - 
setLeft
- Parameters:
 left- the left to setleftUnit-- Since:
 - 1.0.0
 
 - 
getTop
- Returns:
 - the top. It will return null for auto or the cssValue is predefined constant.
 - Since:
 - 1.0.0
 
 - 
getTopUnit
- Returns:
 - the topUnit
 - Since:
 - 1.0.0
 
 - 
getRight
- Returns:
 - the right. It will return null for auto or the cssValue is predefined constant.
 - Since:
 - 1.0.0
 
 - 
getRightUnit
- Returns:
 - the rightUnit
 - Since:
 - 1.0.0
 
 - 
getBottom
- Returns:
 - the bottom. It will return null for auto or the cssValue is predefined constant.
 - Since:
 - 1.0.0
 
 - 
getBottomUnit
- Returns:
 - the bottomUnit
 - Since:
 - 1.0.0
 
 - 
getLeft
- Returns:
 - the left. It will return null for auto or the cssValue is predefined constant.
 - Since:
 - 1.0.0
 
 - 
getLeftUnit
- Returns:
 - the leftUnit
 - Since:
 - 1.0.0
 
 - 
getProducedCssValue
protected static String getProducedCssValue(Float top, CssLengthUnit topUnit, Float right, CssLengthUnit rightUnit, Float bottom, CssLengthUnit bottomUnit, Float left, CssLengthUnit leftUnit) - Parameters:
 top- the value for top. The valueautowill be assigned for null value.topUnit-right- the value for right. The valueautowill be assigned for null value.rightUnit-bottom- the value for bottom. The valueautowill be assigned for null value.bottomUnit-left- the value for left. The valueautowill be assigned for null value.leftUnit-- Returns:
 - 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
 
 - 
hasPredefinedConstantValue
public boolean hasPredefinedConstantValue()- Returns:
 - true if its cssValue is any of the values
         
auto, initial or inherit. - Since:
 - 1.0.0
 
 
 -