001    package com.osbcp.css.constants;
002    
003    import java.io.Serializable;
004    
005    /**
006     * Values for the <i>visibility</i> property.
007     * 
008     * @see <a href="http://www.w3schools.com/cssref/pr_class_visibility.asp">CSS visibility Property</a>
009     * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a>
010     */
011    
012    public enum Visibility implements Serializable {
013    
014            /**
015             * The element is visible. This is default.
016             */
017            VISIBLE,
018    
019            /**
020             * The element is invisible (but still takes up space).
021             */
022            HIDDEN,
023    
024            /**
025             * Only for table elements. collapse removes a row or column, but it does not affect the table layout.
026             */
027            COLLAPSE,
028    
029            /**
030             * Specifies that the value of the display property should be inherited from the parent element.
031             */
032            INHERIT;
033    
034            @Override
035            public String toString() {
036                    return name().toLowerCase().replace("_", "-");
037            }
038    
039    }