Class BorderImageRepeat
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<BorderImageRepeat>
com.webfirmframework.wffweb.css.css3.BorderImageRepeat
- All Implemented Interfaces:
CssProperty
,Serializable
,Cloneable
border-image-repeat: stretch|repeat|round|initial|inherit;
The border-image-repeat property specifies whether the border image should be repeated, rounded or stretched. Tip: Also look at the border-image property (a shorthand property for setting all the border-image-* properties). Default value: stretch Inherited: no Animatable: no Version: CSS3 JavaScript syntax: object.style.borderImageRepeat="round" JavaScript syntax: object.style.borderImageRepeat="round stretch"
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionThestretch
will be set as the valueBorderImageRepeat
(BorderImageRepeat borderImageRepeat) BorderImageRepeat
(String cssValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
validates if the given cssValue is valid for this class.void
sets asinherit
void
sets asinitial
setCssValue
(String cssValue) void
setHorizontal
(String horizontal) void
setVertical
(String vertical) 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:
-
STRETCH
- See Also:
-
REPEAT
- See Also:
-
ROUND
- See Also:
-
-
Constructor Details
-
BorderImageRepeat
public BorderImageRepeat()Thestretch
will be set as the value -
BorderImageRepeat
- Parameters:
cssValue
- the css value to set.
-
BorderImageRepeat
- Parameters:
borderImageRepeat
- theBorderImageRepeat
object from which the cssValue to set.And,null
will throwNullValueException
-
-
Method Details
-
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
-
setCssValue
- Specified by:
setCssValue
in classAbstractCssProperty<BorderImageRepeat>
- Parameters:
cssValue
- the value should be in the format ofround stretch
orround
.null
is considered as an invalid value and it will throwNullValueException
.- Returns:
- the current object.
- Since:
- 1.0.0
-
setVertical
- Parameters:
vertical
- the vertical to set- Since:
- 1.0.0
-
setHorizontal
- Parameters:
horizontal
- the horizontal to set- Since:
- 1.0.0
-
getVertical
- Returns:
- the vertical
- Since:
- 1.0.0
-
getHorizontal
- Returns:
- the horizontal
- 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
-