001    package com.osbcp.css.constants;
002    
003    import java.io.Serializable;
004    
005    /**
006     * Values for the <i>background-repeat</i> property.
007     * 
008     * @see <a href="http://www.w3schools.com/cssref/pr_background-repeat.asp">CSS background-repeat Property</a>
009     * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a>
010     */
011    
012    public enum BackgroundRepeat implements Serializable {
013    
014            /**
015             * The background image will be repeated both vertically and horizontally. This is default.
016             */
017    
018            REPEAT,
019    
020            /**
021             * The background image will be repeated only horizontally.
022             */
023    
024            REPEAT_X,
025    
026            /**
027             * The background image will be repeated only vertically.
028             */
029    
030            REPEAT_Y,
031    
032            /**
033             * The background-image will not be repeated.
034             */
035    
036            NO_REPEAT,
037    
038            /**
039             * Specifies that the setting of the background-repeat property should be inherited from the parent element.
040             */
041    
042            INHERIT;
043    
044            @Override
045            public String toString() {
046                    return name().toLowerCase().replace("_", "-");
047            }
048    
049    }