001    package com.osbcp.css.constants;
002    
003    import java.io.Serializable;
004    
005    /**
006     * Values for the <i>text-align</i> property.
007     * 
008     * @see <a href="http://www.w3schools.com/cssref/pr_text_text-align.asp">CSS text-align Property</a>
009     * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a>
010     */
011    
012    public enum TextAlign implements Serializable {
013    
014            /**
015             * Aligns the text to the left.
016             */
017            LEFT,
018    
019            /**
020             *      Aligns the text to the right.
021             */
022            RIGHT,
023    
024            /**
025             * Centers the text.
026             */
027            CENTER,
028    
029            /**
030             * Stretches the lines so that each line has equal width (like in newspapers and magazines).
031             */
032            JUSTIFY,
033    
034            /**
035             * Specifies that the value of the text-align 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    }