Class ColumnRule
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<ColumnRule>
com.webfirmframework.wffweb.css.css3.ColumnRule
- All Implemented Interfaces:
CssProperty
,StateChangeInformer<CssProperty>
,Serializable
,Cloneable
public class ColumnRule
extends AbstractCssProperty<ColumnRule>
implements StateChangeInformer<CssProperty>
column-rule: column-rule-width column-rule-style column-rule-color|initial|inherit; The column-rule property is a shorthand property for setting all the column-rule-* properties. The column-rule property sets the width, style, and color of the rule between columns. Default value: medium none color Inherited: no Animatable: yes, see individual properties Version: CSS3 JavaScript syntax: object.style.columnRule="3px outset blue"
- Since:
- 1.0.0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTheinitial
will be set as the valueColumnRule
(ColumnRule columnRule) ColumnRule
(String cssValue) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
gets the value,getCssValue
method can also be used to get the same value.void
sets asinherit
void
sets asinitial
setColumnRuleColor
(ColumnRuleColor columnRuleColor) setColumnRuleStyle
(ColumnRuleStyle columnRuleStyle) setColumnRuleWidth
(ColumnRuleWidth columnRuleWidth) setCssValue
(String cssValue) the color/color code to set.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
-
ColumnRule
public ColumnRule()Theinitial
will be set as the value -
ColumnRule
- Parameters:
cssValue
- the css value to set.
-
ColumnRule
- Parameters:
columnRule
- theColumnRule
object from which the cssValue to set.And,null
will throwNullValueException
-
-
Method Details
-
setValue
the color/color code to set. The alternative methodsetCssValue
can also be used.- Parameters:
value
-- Returns:
- the current object
- Since:
- 1.0.0
-
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
-
getValue
gets the value,getCssValue
method can also be used to get the same value.- Returns:
- the value in String.
- Since:
- 1.0.0
-
setCssValue
- Specified by:
setCssValue
in classAbstractCssProperty<ColumnRule>
- Parameters:
cssValue
- the value should be for examplemedium none #0000ff
.null
is considered as an invalid value and it will throwNullValueException
.And an empty string is also considered as an invalid value and it will throwInvalidValueException
.- 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
-
getColumnRuleWidth
- Returns:
- the columnRuleWidth
- Since:
- 1.0.0
-
setColumnRuleWidth
- Parameters:
columnRuleWidth
- the columnRuleWidth to set- Since:
- 1.0.0
-
getColumnRuleStyle
- Returns:
- the colunmRuleStyle
- Since:
- 1.0.0
-
setColumnRuleStyle
- Parameters:
columnRuleStyle
- the colunmRuleStyle to set- Returns:
- Since:
- 1.0.0
-
getColumnRuleColor
- Returns:
- the columnRuleColor
- Since:
- 1.0.0
-
setColumnRuleColor
- Parameters:
columnRuleColor
- the columnRuleColor to set- Returns:
- the current instance.
- Since:
- 1.0.0
-
stateChanged
- Specified by:
stateChanged
in interfaceStateChangeInformer<CssProperty>
-