Class WebkitColumnRule

All Implemented Interfaces:
CssProperty, StateChangeInformer<CssProperty>, Serializable, Cloneable

public class WebkitColumnRule extends AbstractCssProperty<WebkitColumnRule> implements StateChangeInformer<CssProperty>
 -webkit-column-rule: -webkit-column-rule-width -webkit-column-rule-style -webkit-column-rule-color|initial|inherit;

 The -webkit-column-rule property is a shorthand property for setting all the -webkit-column-rule-* properties.

 The -webkit-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

    • WebkitColumnRule

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

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

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

    • setValue

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

      public WebkitColumnRuleWidth getWebkitColumnRuleWidth()
      Returns:
      the webkitColumnRuleWidth
      Since:
      1.0.0
    • setWebkitColumnRuleWidth

      public WebkitColumnRule setWebkitColumnRuleWidth(WebkitColumnRuleWidth webkitColumnRuleWidth)
      Parameters:
      webkitColumnRuleWidth - the webkitColumnRuleWidth to set
      Since:
      1.0.0
    • getWebkitColumnRuleStyle

      public WebkitColumnRuleStyle getWebkitColumnRuleStyle()
      Returns:
      the webkitColunmRuleStyle
      Since:
      1.0.0
    • setWebkitColumnRuleStyle

      public WebkitColumnRule setWebkitColumnRuleStyle(WebkitColumnRuleStyle webkitColunmRuleStyle)
      Parameters:
      webkitColunmRuleStyle - the webkitColunmRuleStyle to set
      Returns:
      Since:
      1.0.0
    • getWebkitColumnRuleColor

      public WebkitColumnRuleColor getWebkitColumnRuleColor()
      Returns:
      the webkitColumnRuleColor
      Since:
      1.0.0
    • setWebkitColumnRuleColor

      public WebkitColumnRule setWebkitColumnRuleColor(WebkitColumnRuleColor webkitColumnRuleColor)
      Parameters:
      webkitColumnRuleColor - the webkitColumnRuleColor to set
      Returns:
      the current instance.
      Since:
      1.0.0
    • stateChanged

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