jxl.biff
Class EmptyCell

java.lang.Object
  extended byjxl.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


Constructor Summary
EmptyCell(int c, int r)
          Constructs an empty cell at the specified position
 
Method Summary
 WritableCell copyTo(int c, int r)
          Implementation of the deep copy function
 CellFeatures getCellFeatures()
          Accessor for the cell features
 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
 WritableCellFeatures getWritableCellFeatures()
          Accessor for the cell features
 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)
          Dummy override
 void setBorder(Border border, BorderLineStyle line)
          Dummy override
 void setCellFeatures(WritableCellFeatures wcf)
          Accessor for the cell features
 void setCellFormat(CellFormat cf)
          Dummy override
 void setCellFormat(CellFormat cf)
          Deprecated.  
 void setHidden(boolean flag)
          Dummy override
 void setLocked(boolean flag)
          Dummy override
 void setVerticalAlignment(VerticalAlignment valign)
          Dummy override
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
Dummy override

Parameters:
flag - the hidden flag

setLocked

public void setLocked(boolean flag)
Dummy override

Parameters:
flag - dummy

setAlignment

public void setAlignment(Alignment align)
Dummy override

Parameters:
align - dummy

setVerticalAlignment

public void setVerticalAlignment(VerticalAlignment valign)
Dummy override

Parameters:
valign - dummy

setBorder

public void setBorder(Border border,
                      BorderLineStyle line)
Dummy override

Parameters:
line - dummy
border - dummy

setCellFormat

public void setCellFormat(CellFormat cf)
Dummy override

Specified by:
setCellFormat in interface WritableCell
Parameters:
cf - dummy

setCellFormat

public void setCellFormat(CellFormat cf)
Deprecated.  

Dummy override

Parameters:
cf - dummy

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

copyTo

public WritableCell copyTo(int c,
                           int r)
Implementation of the deep copy function

Specified by:
copyTo in interface WritableCell
Parameters:
c - the column which the new cell will occupy
r - the row which the new cell will occupy
Returns:
a copy of this cell, which can then be added to the sheet

getCellFeatures

public CellFeatures getCellFeatures()
Accessor for the cell features

Specified by:
getCellFeatures in interface Cell
Returns:
the cell features or NULL if this cell doesn't have any

getWritableCellFeatures

public WritableCellFeatures getWritableCellFeatures()
Accessor for the cell features

Specified by:
getWritableCellFeatures in interface WritableCell
Returns:
the cell features or NULL if this cell doesn't have any

setCellFeatures

public void setCellFeatures(WritableCellFeatures wcf)
Accessor for the cell features

Specified by:
setCellFeatures in interface WritableCell
Parameters:
wcf - the cell features