001package com.hfg.css; 002 003 004//------------------------------------------------------------------------------ 005/** 006 Valid CSS values for the display property. 007 008 <div> 009 @author J. Alex Taylor, hairyfatguy.com 010 </div> 011 */ 012//------------------------------------------------------------------------------ 013// com.hfg XML/HTML Coding Library 014// 015// This library is free software; you can redistribute it and/or 016// modify it under the terms of the GNU Lesser General Public 017// License as published by the Free Software Foundation; either 018// version 2.1 of the License, or (at your option) any later version. 019// 020// This library is distributed in the hope that it will be useful, 021// but WITHOUT ANY WARRANTY; without even the implied warranty of 022// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 023// Lesser General Public License for more details. 024// 025// You should have received a copy of the GNU Lesser General Public 026// License along with this library; if not, write to the Free Software 027// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 028// 029// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com 030// jataylor@hairyfatguy.com 031//------------------------------------------------------------------------------ 032 033public enum CSSDisplayValue 034{ 035 inline("inline"), 036 block("block"), 037 flex("flex"), 038 inline_block("inline-block"), 039 inline_flex("inline-flex"), 040 inline_table("inline-table"), 041 list_item("list-item"), 042 run_in("run-in"), 043 table("table"), 044 table_caption("table-caption"), 045 table_column_group("table-column-group"), 046 table_header_group("table-header-group"), 047 table_footer_group("table-footer-group"), 048 table_row_group("table-row-group"), 049 table_cell("table-cell"), 050 table_column("table-column"), 051 table_row("table-row"), 052 none("none"), 053 initial("initial"), 054 inherit("inherit"); 055 056 private String mDisplayString; 057 058 //########################################################################### 059 // CONSTRUCTORS 060 //########################################################################### 061 062 //-------------------------------------------------------------------------- 063 private CSSDisplayValue(String inDisplayString) 064 { 065 mDisplayString = inDisplayString; 066 } 067 068 //########################################################################### 069 // PUBLIC METHODS 070 //########################################################################### 071 072 //-------------------------------------------------------------------------- 073 public String getDisplayString() 074 { 075 return mDisplayString; 076 } 077 078}