Package com.webfirmframework.wffweb.css
Class BorderRight
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<BorderRight>
com.webfirmframework.wffweb.css.BorderRight
- All Implemented Interfaces:
CssProperty
,StateChangeInformer<CssProperty>
,Serializable
,Cloneable
public class BorderRight
extends AbstractCssProperty<BorderRight>
implements StateChangeInformer<CssProperty>
The border-right shorthand property sets all the right border properties in one declaration. The properties that can be set, are (in order): border-right-width, border-right-style, and border-right-color. If one of the values above are missing, e.g. border-right:solid #ff0000, the default value for the missing property will be inserted, if any. Default value: medium none color Inherited: no Animatable: yes Version: CSS1 JavaScript syntax: object.style.borderRight="3px dashed blue"
- Since:
- 1.0.0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionThe valuemedium none black
will be assigned as the cssValue.BorderRight
(BorderRight borderRight) BorderRight
(String cssValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addPredefinedConstant
(String constant) static boolean
checks the given css value is valid for this class.void
sets as inheritvoid
sets as initialsetBorderRightColor
(BorderRightColor borderRightColor) setBorderRightStyle
(BorderRightStyle borderRightStyle) setBorderRightWidth
(BorderRightWidth borderRightWidth) setCssValue
(String cssValue) void
stateChanged
(CssProperty stateChangedObject) 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:
-
-
Constructor Details
-
BorderRight
public BorderRight()The valuemedium none black
will be assigned as the cssValue.- Since:
- 1.0.0
-
BorderRight
- Parameters:
cssValue
- the css value to set.
-
BorderRight
- Parameters:
borderRight
- theBorderRight
object from which the cssValue to set.And,null
will throwNullValueException
-
-
Method Details
-
getCssName
- Specified by:
getCssName
in interfaceCssProperty
- Returns:
- the name portion in style, eg
align-content
for stylealign-content: center
.
-
getCssValue
- Specified by:
getCssValue
in interfaceCssProperty
- Returns:
- the value portion in style, eg
center
for stylealign-content: center
.
-
toString
-
setCssValue
- Specified by:
setCssValue
in classAbstractCssProperty<BorderRight>
- Parameters:
cssValue
- the value should be in the format ofmedium none color
,initial
orinherit
.null
is considered as an invalid value and it will throwNullValueException
.- Returns:
- the current object.
- Since:
- 1.0.0
-
isValid
checks the given css value is valid for this class. It does't do a strict validation.- Parameters:
cssValue
-- Returns:
- Since:
- 1.0.0
-
setAsInitial
public void setAsInitial()sets as initial- Since:
- 1.0.0
-
setAsInherit
public void setAsInherit()sets as inherit- Since:
- 1.0.0
-
getBorderRightColor
-
getBorderRightStyle
-
getBorderRightWidth
-
setBorderRightWidth
-
setBorderRightStyle
-
setBorderRightColor
-
stateChanged
- Specified by:
stateChanged
in interfaceStateChangeInformer<CssProperty>
-
addPredefinedConstant
- Since:
- 1.0.0
-