Class BorderImageRepeat

  • All Implemented Interfaces:
    CssProperty, java.io.Serializable, java.lang.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:
    Serialized Form
    • Constructor Detail

      • BorderImageRepeat

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

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

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

      • getCssName

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

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

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Object
      • setCssValue

        public BorderImageRepeat setCssValue​(java.lang.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​(java.lang.String vertical)
        Parameters:
        vertical - the vertical to set
        Since:
        1.0.0
      • setHorizontal

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

        public java.lang.String getVertical​()
        Returns:
        the vertical
        Since:
        1.0.0
      • getHorizontal

        public java.lang.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​(java.lang.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