KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jxl > CellType


1 /*********************************************************************
2 *
3 * Copyright (C) 2002 Andrew Khan
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 ***************************************************************************/

19
20 package jxl;
21
22 /**
23  * An enumeration type listing the available content types for a cell
24  */

25 public final class CellType
26 {
27
28   /**
29    * The text description of this cell type
30    */

31   private String JavaDoc description;
32
33   /**
34    * Private constructor
35    * @param desc the description of this type
36    */

37   private CellType(String JavaDoc desc)
38   {
39     description = desc;
40   }
41
42   /**
43    * Returns a string description of this cell
44    *
45    * @return the string description for this type
46    */

47   public String JavaDoc toString()
48   {
49     return description;
50   }
51
52   /**
53    */

54   public static final CellType EMPTY = new CellType("Empty");
55   /**
56    */

57   public static final CellType LABEL = new CellType("Label");
58   /**
59    */

60   public static final CellType NUMBER = new CellType("Number");
61   /**
62    */

63   public static final CellType BOOLEAN = new CellType("Boolean");
64   /**
65    */

66   public static final CellType ERROR = new CellType("Error");
67   /**
68    */

69   public static final CellType NUMBER_FORMULA =
70                                          new CellType("Numerical Formula");
71   /**
72    */

73   public static final CellType DATE_FORMULA = new CellType("Date Formula");
74   /**
75    */

76   public static final CellType STRING_FORMULA = new CellType("String Formula");
77   /**
78    */

79   public static final CellType BOOLEAN_FORMULA =
80                                           new CellType("Boolean Formula");
81   /**
82    */

83   public static final CellType FORMULA_ERROR = new CellType("Formula Error");
84   /**
85    */

86   public static final CellType DATE = new CellType("Date");
87 }
88
89
90
Popular Tags