Class BorderImageRepeat

All Implemented Interfaces:
CssProperty, Serializable, Cloneable

public class BorderImageRepeat extends AbstractCssProperty<BorderImageRepeat>
border-image-repeat: stretch|repeat|round|initial|inherit;
 The border-image-repeat property specifies whether the border image should be repeated, rounded or stretched.

 Tip: Also look at the border-image property (a shorthand property for setting all the border-image-* properties).
 Default value:  stretch
 Inherited:      no
 Animatable:     no
 Version:        CSS3
 JavaScript syntax:      object.style.borderImageRepeat="round"
 JavaScript syntax:      object.style.borderImageRepeat="round stretch"

 
See Also:
  • Field Details

  • Constructor Details

    • BorderImageRepeat

      public BorderImageRepeat()
      The stretch will be set as the value
    • BorderImageRepeat

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

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

    • getCssName

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

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

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

      public BorderImageRepeat setCssValue(String cssValue)
      Specified by:
      setCssValue in class AbstractCssProperty<BorderImageRepeat>
      Parameters:
      cssValue - the value should be in the format of round stretch or round. null is considered as an invalid value and it will throw NullValueException.
      Returns:
      the current object.
      Since:
      1.0.0
    • setVertical

      public void setVertical(String vertical)
      Parameters:
      vertical - the vertical to set
      Since:
      1.0.0
    • setHorizontal

      public void setHorizontal(String horizontal)
      Parameters:
      horizontal - the horizontal to set
      Since:
      1.0.0
    • getVertical

      public String getVertical()
      Returns:
      the vertical
      Since:
      1.0.0
    • getHorizontal

      public String getHorizontal()
      Returns:
      the horizontal
      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
    • isValid

      public static boolean isValid(String cssValue)
      validates if the given cssValue is valid for this class.
      Parameters:
      cssValue - the value to check.
      Returns:
      true if valid and false if invalid.
      Since:
      1.0.0