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

  • Constructor Details

    • ColumnRule

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

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

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

    • setValue

      public ColumnRule 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 ColumnRule setCssValue(String cssValue)
      Specified by:
      setCssValue in class AbstractCssProperty<ColumnRule>
      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
    • getColumnRuleWidth

      public ColumnRuleWidth getColumnRuleWidth()
      Returns:
      the columnRuleWidth
      Since:
      1.0.0
    • setColumnRuleWidth

      public ColumnRule setColumnRuleWidth(ColumnRuleWidth columnRuleWidth)
      Parameters:
      columnRuleWidth - the columnRuleWidth to set
      Since:
      1.0.0
    • getColumnRuleStyle

      public ColumnRuleStyle getColumnRuleStyle()
      Returns:
      the colunmRuleStyle
      Since:
      1.0.0
    • setColumnRuleStyle

      public ColumnRule setColumnRuleStyle(ColumnRuleStyle columnRuleStyle)
      Parameters:
      columnRuleStyle - the colunmRuleStyle to set
      Returns:
      Since:
      1.0.0
    • getColumnRuleColor

      public ColumnRuleColor getColumnRuleColor()
      Returns:
      the columnRuleColor
      Since:
      1.0.0
    • setColumnRuleColor

      public ColumnRule setColumnRuleColor(ColumnRuleColor columnRuleColor)
      Parameters:
      columnRuleColor - the columnRuleColor to set
      Returns:
      the current instance.
      Since:
      1.0.0
    • stateChanged

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