com.jrefinery.report.targets.table.html
Class HtmlCellData

java.lang.Object
  |
  +--com.jrefinery.report.targets.table.TableCellData
        |
        +--com.jrefinery.report.targets.table.html.HtmlCellData
Direct Known Subclasses:
HtmlImageCellData, HtmlTextCellData

public abstract class HtmlCellData
extends TableCellData

The baseclass for all HTML-Content cells. The cell has a HtmlCellStyle assigned and carries a flag to indicate whether to create XHTML output.

Author:
Thomas Morgner

Constructor Summary
HtmlCellData(java.awt.geom.Rectangle2D outerBounds, HtmlCellStyle style, boolean useXHTML)
          Creates a new HtmlCellData-object.
 
Method Summary
 HtmlCellStyle getStyle()
          Gets the assigned cell style.
 boolean isUseXHTML()
          Gets the XHTML-generator flag.
abstract  void write(java.io.PrintWriter pout, HtmlFilesystem filesystem)
          Writes the content of this cell into the print writer.
 
Methods inherited from class com.jrefinery.report.targets.table.TableCellData
getBounds, isBackground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlCellData

public HtmlCellData(java.awt.geom.Rectangle2D outerBounds,
                    HtmlCellStyle style,
                    boolean useXHTML)
Creates a new HtmlCellData-object. The cell data will encapsulate images or text content.

Parameters:
outerBounds - the cell bounds.
style - the assigned cell style for this data cell.
useXHTML - a flag indicating whether to generate XHTML.
Method Detail

write

public abstract void write(java.io.PrintWriter pout,
                           HtmlFilesystem filesystem)
Writes the content of this cell into the print writer. The assigned HtmlFilesystem is used to create external references, if needed.

Parameters:
pout - the printwriter receiving the generated content.
filesystem - the filesystem used to create the external content.

getStyle

public HtmlCellStyle getStyle()
Gets the assigned cell style.

Returns:
the assigned cell style.

isUseXHTML

public boolean isUseXHTML()
Gets the XHTML-generator flag.

Returns:
true, if this cell should create XHTML output.