Class BorderImageSource

  • All Implemented Interfaces:
    CssProperty, StateChangeInformer<Bean>, java.io.Serializable, java.lang.Cloneable


    public class BorderImageSource
    extends AbstractCssProperty<BorderImageSource>
    implements StateChangeInformer<Bean>
    
     border-image-source: none|image|initial|inherit;
    
     The border-image-source property specifies the path to the image to be used as a border (instead of the normal border around an element).
    
     Tip: If the value is "none", or if the image cannot be displayed, the border styles will be used.
    
     Tip: Also look at the border-image property (a shorthand property for setting all the border-image-* properties).
     Default value:  none
     Inherited:      no
     Animatable:     no
     Version:        CSS3
     JavaScript syntax:      object.style.borderImageSource="url(border.png)"
    
     
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • BorderImageSource

        public BorderImageSource​()
        the default value is none
        Since:
        1.0.0
      • BorderImageSource

        public BorderImageSource​(java.lang.String cssValue)
        Parameters:
        cssValue - the cssValue to set.
        eg:- url(images/BackgroundDesign.png)
      • BorderImageSource

        public BorderImageSource​(BorderImageSource borderImageSource)
        Parameters:
        borderImageSource - the BorderImageSource object from which the cssName and cssValue to set.
      • BorderImageSource

        public BorderImageSource​(java.lang.String... imageUrls)
        sample code :- new BorderImageSource("Test.gif", "TestImage.png") creates background-image: url("Test.gif"), url("TestImage.png"); . For css3 syntax method please use new BorderImageSource(UrlCss3Value... urlCss3Values) or setImageUrls(UrlCss3Value... urlCss3Values) method.
        Parameters:
        imageUrls - an array of backgroundImage urls, eg:- backgroundImage.setImageUrls("Test.gif", "TestImage.png") and the generated css will be background-image: url("Test.gif"), url("TestImage.png");
        Since:
        1.0.0
      • BorderImageSource

        public BorderImageSource​(UrlCss3Value... urlCss3Values)
        Parameters:
        urlCss3Values - an array of UrlCss3Value objects.
    • Method Detail

      • getCssName

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

        public java.lang.String getCssValue​()
        Specified by:
        getCssValue in interface CssProperty
        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
      • setImageUrls

        public void setImageUrls​(java.lang.String... imageUrls)
        sample code :- backgroundImage.setImageUrls("Test.gif", "TestImage.png") creates background-image: url("Test.gif"), url("TestImage.png");. For css3 syntax method please use setImageUrls(UrlCss3Value... urlCss3Values) method.
        Parameters:
        imageUrls - an array of backgroundImage urls, eg:- backgroundImage.setImageUrls("Test.gif", "TestImage.png") and the generated css will be background-image: url("Test.gif"), url("TestImage.png");
        Since:
        1.0.0
      • setImageUrls

        public void setImageUrls​(UrlCss3Value... urlCss3Values)
        Parameters:
        urlCss3Values - urlCss3Values an array of UrlCss3Value objects.
        Since:
        1.0.0
      • getUrlCss3Values

        public java.util.List<UrlCss3Value> getUrlCss3Values​()
        Returns:
        a new object of unmodifiable List<UrlCss3Value> whenever this method is called. Or null.
        Since:
        1.0.0
      • setAsInitial

        public void setAsInitial​()
        Since:
        1.0.0
      • setAsInherit

        public void setAsInherit​()
        Since:
        1.0.0