KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jxl > write > WritableCell


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.write;
21
22 import jxl.Cell;
23 import jxl.format.CellFormat;
24
25 /**
26  * The interface for all writable cells
27  */

28 public interface WritableCell extends Cell
29 {
30   /**
31    * Sets the cell format for this cell
32    *
33    * @param cf the cell format
34    */

35   public void setCellFormat(CellFormat cf);
36
37   /**
38    * A deep copy. The returned cell still needs to be added to the sheet.
39    * By not automatically adding the cell to the sheet, the client program
40    * may change certain attributes, such as the value or the format
41    *
42    * @param col the column which the new cell will occupy
43    * @param row the row which the new cell will occupy
44    * @return a copy of this cell, which can then be added to the sheet
45    */

46   public WritableCell copyTo(int col, int row);
47
48   /**
49    * Accessor for the cell features
50    *
51    * @return the cell features or NULL if this cell doesn't have any
52    */

53   public WritableCellFeatures getWritableCellFeatures();
54
55   /**
56    * Sets the cell features
57    *
58    * @param cf the cell features
59    */

60   public void setCellFeatures(WritableCellFeatures cf);
61 }
62
63
Popular Tags