Class 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 Details

  • Constructor Details

    • MozColumnRule

      public MozColumnRule()
      The initial will be set as the value
    • MozColumnRule

      public MozColumnRule(String cssValue)
      Parameters:
      cssValue - the css value to set.
    • MozColumnRule

      public MozColumnRule(MozColumnRule mozColumnRule)
      Parameters:
      mozColumnRule - the MozColumnRule object from which the cssValue to set.And, null will throw NullValueException
  • Method Details

    • setValue

      public MozColumnRule setValue(String value)
      the color/color code to set. The alternative method setCssValue can also be used.
      Parameters:
      value -
      Returns:
      the current object
      Since:
      1.0.0
    • getCssName

      public String getCssName()
      Specified by:
      getCssName in interface CssProperty
      Returns:
      the name portion in style, eg align-content for style align-content: center.
    • getCssValue

      public String getCssValue()
      Specified by:
      getCssValue in interface CssProperty
      Returns:
      the value portion in style, eg center for style align-content: center.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getValue

      public String 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

      public MozColumnRule setCssValue(String cssValue)
      Specified by:
      setCssValue in class AbstractCssProperty<MozColumnRule>
      Parameters:
      cssValue - the value should be for example medium none #0000ff. null is considered as an invalid value and it will throw NullValueException.And an empty string is also considered as an invalid value and it will throw InvalidValueException.
      Returns:
      the current object.
      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
    • getMozColumnRuleWidth

      public MozColumnRuleWidth getMozColumnRuleWidth()
      Returns:
      the mozColumnRuleWidth
      Since:
      1.0.0
    • setMozColumnRuleWidth

      public MozColumnRule setMozColumnRuleWidth(MozColumnRuleWidth mozColumnRuleWidth)
      Parameters:
      mozColumnRuleWidth - the mozColumnRuleWidth to set
      Since:
      1.0.0
    • getMozColumnRuleStyle

      public MozColumnRuleStyle getMozColumnRuleStyle()
      Returns:
      the mozColunmRuleStyle
      Since:
      1.0.0
    • setMozColumnRuleStyle

      public MozColumnRule setMozColumnRuleStyle(MozColumnRuleStyle mozColunmRuleStyle)
      Parameters:
      mozColunmRuleStyle - the mozColunmRuleStyle to set
      Returns:
      Since:
      1.0.0
    • getMozColumnRuleColor

      public MozColumnRuleColor getMozColumnRuleColor()
      Returns:
      the mozColumnRuleColor
      Since:
      1.0.0
    • setMozColumnRuleColor

      public MozColumnRule setMozColumnRuleColor(MozColumnRuleColor mozColumnRuleColor)
      Parameters:
      mozColumnRuleColor - the mozColumnRuleColor to set
      Returns:
      the current instance.
      Since:
      1.0.0
    • stateChanged

      public void stateChanged(CssProperty stateChangedObject)
      Specified by:
      stateChanged in interface StateChangeInformer<CssProperty>