001 package com.osbcp.css.constants; 002 003 import java.io.Serializable; 004 005 /** 006 * Values for the <i>font-style</i> property. 007 * 008 * @see <a href="http://www.w3schools.com/cssref/pr_font_font-style.asp">CSS font-style Property</a> 009 * @author <a href="mailto:christoffer@christoffer.me">Christoffer Pettersson</a> 010 */ 011 012 public enum FontStyle implements Serializable { 013 014 /** 015 * The browser displays a normal font style. This is default. 016 */ 017 NORMAL, 018 019 /** 020 * The browser displays an italic font style. 021 */ 022 ITALIC, 023 024 /** 025 * The browser displays an oblique font style. 026 */ 027 OBLIQUE, 028 029 /** 030 * Specifies that the font style should be inherited from the parent element. 031 */ 032 INHERIT; 033 034 @Override 035 public String toString() { 036 return name().toLowerCase(); 037 } 038 039 }