jxl.biff
Class EmptyCell

java.lang.Object
  |
  +--jxl.biff.EmptyCell
All Implemented Interfaces:
Cell, WritableCell

public class EmptyCell
extends java.lang.Object
implements WritableCell

An empty cell. Represents an empty, as opposed to a blank cell in the workbook


Field Summary
private  int col
          The column number of this empty cell
private  int row
          The row of this empty cell
 
Constructor Summary
EmptyCell(int c, int r)
          Constructs an empty cell at the specified position
 
Method Summary
 CellFormat getCellFormat()
          Accessor for the format which is applied to this cell
 int getColumn()
          Returns the column number of this cell
 java.lang.String getContents()
          Quick and dirty function to return the contents of this cell as a string.
 int getRow()
          Returns the row number of this cell
 CellType getType()
          Returns the content type of this cell
 boolean isHidden()
          Indicates whether or not this cell is hidden, by virtue of either the entire row or column being collapsed
 void setAlignment(Alignment align)
           
 void setBorder(Border border, BorderLineStyle line)
           
 void setCellFormat(CellFormat cf)
          Sets the cell format for this cell
 void setCellFormat(CellFormat cf)
          Deprecated.  
 void setHidden(boolean flag)
           
 void setLocked(boolean flag)
           
 void setVerticalAlignment(VerticalAlignment valign)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

row

private int row
The row of this empty cell

col

private int col
The column number of this empty cell
Constructor Detail

EmptyCell

public EmptyCell(int c,
                 int r)
Constructs an empty cell at the specified position
Parameters:
c - the zero based column
r - the zero based row
Method Detail

getRow

public int getRow()
Returns the row number of this cell
Specified by:
getRow in interface Cell
Returns:
the row number of this cell

getColumn

public int getColumn()
Returns the column number of this cell
Specified by:
getColumn in interface Cell
Returns:
the column number of this cell

getType

public CellType getType()
Returns the content type of this cell
Specified by:
getType in interface Cell
Returns:
the content type for this cell

getContents

public java.lang.String getContents()
Quick and dirty function to return the contents of this cell as a string.
Specified by:
getContents in interface Cell
Returns:
an empty string

getCellFormat

public CellFormat getCellFormat()
Accessor for the format which is applied to this cell
Specified by:
getCellFormat in interface Cell
Returns:
the format applied to this cell

setHidden

public void setHidden(boolean flag)
Parameters:
flag -  

setLocked

public void setLocked(boolean flag)
Parameters:
flag -  

setAlignment

public void setAlignment(Alignment align)
Parameters:
align -  

setVerticalAlignment

public void setVerticalAlignment(VerticalAlignment valign)
Parameters:
valign -  

setBorder

public void setBorder(Border border,
                      BorderLineStyle line)
Parameters:
line -  
border -  

setCellFormat

public void setCellFormat(CellFormat cf)
Description copied from interface: WritableCell
Sets the cell format for this cell
Specified by:
setCellFormat in interface WritableCell
Parameters:
cf -  

setCellFormat

public void setCellFormat(CellFormat cf)
Deprecated.  

Parameters:
cf -  

isHidden

public boolean isHidden()
Indicates whether or not this cell is hidden, by virtue of either the entire row or column being collapsed
Specified by:
isHidden in interface Cell
Returns:
TRUE if this cell is hidden, FALSE otherwise