001    package com.osbcp.css.constants;
002    
003    import java.io.Serializable;
004    
005    /**
006     * Values for the <i>border-style</i> property.
007     * 
008     * @see <a href="http://www.w3schools.com/cssref/pr_border-style.asp">CSS border-style Property</a>
009     * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a>
010     */
011    
012    public enum BorderStyle implements Serializable {
013    
014            /**
015             * Specifies no border.
016             */
017    
018            NONE,
019    
020            /**
021             * The same as "none", except in border conflict resolution for table elements.
022             */
023    
024            HIDDEN,
025    
026            /**
027             * Specifies a dotted border.
028             */
029    
030            DOTTED,
031    
032            /**
033             *      Specifies a dashed border.
034             */
035    
036            DASHED,
037    
038            /**
039             * Specifies a solid border.
040             */
041    
042            SOLID,
043    
044            /**
045             * Specifies a double border.
046             */
047    
048            DOUBLE,
049    
050            /**
051             * Specifies a 3D grooved border. The effect depends on the border-color value.
052             */
053    
054            GROOVE,
055    
056            /**
057             * Specifies a 3D ridged border. The effect depends on the border-color value.
058             */
059    
060            RIDGE,
061    
062            /**
063             *      Specifies a 3D inset border. The effect depends on the border-color value.
064             */
065    
066            INSET,
067    
068            /**
069             * Specifies a 3D outset border. The effect depends on the border-color value.
070             */
071    
072            OUTSET,
073    
074            /**
075             * Specifies that the border style should be inherited from the parent element.
076             */
077    
078            INHERT;
079    
080            @Override
081            public String toString() {
082                    return name().toLowerCase().replace("_", "-");
083            }
084    
085    }