KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jxl > read > biff > BlankCell


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.read.biff;
21
22 import jxl.CellType;
23 import jxl.biff.FormattingRecords;
24
25 /**
26  * A blank cell. Despite the fact that this cell has no contents, it
27  * has formatting information applied to it
28  */

29 public class BlankCell extends CellValue
30 {
31   /**
32    * Constructs this object from the raw data
33    *
34    * @param t the raw data
35    * @param fr the available formats
36    * @param si the sheet
37    */

38   BlankCell(Record t, FormattingRecords fr, SheetImpl si)
39   {
40     super(t, fr, si);
41   }
42
43   /**
44    * Returns the contents of this cell as an empty string
45    *
46    * @return the value formatted into a string
47    */

48   public String JavaDoc getContents()
49   {
50     return "";
51   }
52
53   /**
54    * Accessor for the cell type
55    *
56    * @return the cell type
57    */

58   public CellType getType()
59   {
60     return CellType.EMPTY;
61   }
62 }
63
64
65
66
Popular Tags