001    package com.osbcp.css.constants;
002    
003    import java.io.Serializable;
004    
005    /**
006     * Values for the <i>overflow</i> property.
007     * 
008     * @see <a href="http://www.w3schools.com/cssref/pr_pos_overflow.asp">CSS overflow Property</a>
009     * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a>
010     */
011    
012    public enum Overflow implements Serializable {
013    
014            /**
015             * The overflow is not clipped. It renders outside the element's box. This is default.
016             */
017            VISIBLE,
018    
019            /**
020             *      The overflow is clipped, and the rest of the content will be invisible.
021             */
022            HIDDEN,
023    
024            /**
025             *      The overflow is clipped, but a scroll-bar is added to see the rest of the content.
026             */
027            SCROLL,
028    
029            /**
030             * If overflow is clipped, a scroll-bar should be added to see the rest of the content.
031             */
032            AUTO,
033    
034            /**
035             * Specifies that the value of the overflow property should be inherited from the parent element.
036             */
037            INHERIT;
038    
039            @Override
040            public String toString() {
041                    return name().toLowerCase();
042            }
043    
044    }