1 /* 2 * Copyright (c) 2005, Mike Heath 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without modification, are permitted 6 * provided that the following conditions are met: 7 * 8 * * Redistributions of source code must retain the above copyright notice, this list of conditions 9 * and the following disclaimer. 10 * * Redistributions in binary form must reproduce the above copyright notice, this list of 11 * conditions and the following disclaimer in the documentation and/or other materials provided 12 * with the distribution. 13 * * The names of its contributors may not be used to endorse or promote products derived from this 14 * software without specific prior written permission. 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 package net.sf.cssbean; 29 30 /*** 31 * @author Mike Heath <elcapo@gmail.com> 32 */ 33 public enum Display implements Value { 34 NONE("none"), 35 INLINE("inline"), 36 BLOCK("block"), 37 LIST_ITEM("list-item"), 38 RUN_IN("run-in"), 39 COMPACT("compact"), 40 MARKER("marker"), 41 TABLE("table"), 42 INLINE_TABLE("inline-table"), 43 TABLE_ROW_GROUP("table-row-group"), 44 TABLE_HEADER_GROUP("table-header-group"), 45 TABLE_FOOTER_GROUP("table-footer-group"), 46 TABLE_ROW("table-row"), 47 TABLE_COLUMN_GROUP("table-column-group"), 48 TABLE_COLUMN("table-column"), 49 TABLE_CELL("table-cell"), 50 TABLE_CAPTION("table-caption"); 51 52 private final String value; 53 54 private Display(String value) { 55 this.value = value; 56 } 57 58 public String getValue() { 59 return value; 60 } 61 62 }