Class MozColumnRule
java.lang.Object
com.webfirmframework.wffweb.css.core.AbstractCssProperty<MozColumnRule>
com.webfirmframework.wffweb.css.css3.MozColumnRule
- All Implemented Interfaces:
CssProperty
,StateChangeInformer<CssProperty>
,Serializable
,Cloneable
public class MozColumnRule
extends AbstractCssProperty<MozColumnRule>
implements StateChangeInformer<CssProperty>
-moz-column-rule: -moz-column-rule-width -moz-column-rule-style -moz-column-rule-color|initial|inherit; The -moz-column-rule property is a shorthand property for setting all the -moz-column-rule-* properties. The -moz-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 valueMozColumnRule
(MozColumnRule mozColumnRule) MozColumnRule
(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
setCssValue
(String cssValue) setMozColumnRuleColor
(MozColumnRuleColor mozColumnRuleColor) setMozColumnRuleStyle
(MozColumnRuleStyle mozColunmRuleStyle) setMozColumnRuleWidth
(MozColumnRuleWidth mozColumnRuleWidth) 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
-
MozColumnRule
public MozColumnRule()Theinitial
will be set as the value -
MozColumnRule
- Parameters:
cssValue
- the css value to set.
-
MozColumnRule
- Parameters:
mozColumnRule
- theMozColumnRule
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<MozColumnRule>
- 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
-
getMozColumnRuleWidth
- Returns:
- the mozColumnRuleWidth
- Since:
- 1.0.0
-
setMozColumnRuleWidth
- Parameters:
mozColumnRuleWidth
- the mozColumnRuleWidth to set- Since:
- 1.0.0
-
getMozColumnRuleStyle
- Returns:
- the mozColunmRuleStyle
- Since:
- 1.0.0
-
setMozColumnRuleStyle
- Parameters:
mozColunmRuleStyle
- the mozColunmRuleStyle to set- Returns:
- Since:
- 1.0.0
-
getMozColumnRuleColor
- Returns:
- the mozColumnRuleColor
- Since:
- 1.0.0
-
setMozColumnRuleColor
- Parameters:
mozColumnRuleColor
- the mozColumnRuleColor to set- Returns:
- the current instance.
- Since:
- 1.0.0
-
stateChanged
- Specified by:
stateChanged
in interfaceStateChangeInformer<CssProperty>
-