net.sf.statcvs.renderer
Interface TableCellRenderer
- HTMLTableCellRenderer, XMLRenderer
public interface TableCellRenderer
Interface for a class that turns
Columns
into their representation for some output format, for example a HTML
<td> or an XML element.
$Id: TableCellRenderer.java,v 1.11 2008/04/02 11:22:15 benoitx Exp $
renderAuthorCell
public void renderAuthorCell(Author author)
Render a cell containing an author
renderAuthorIdCell
public void renderAuthorIdCell(Author author)
Render a cell containing an author Id
renderCell
public void renderCell(String content)
Render a generic table cell
content - the cell's content
renderDirectoryCell
public void renderDirectoryCell(Directory directory)
Render a cell containing a directory
directory - the directory
renderEmptyCell
public void renderEmptyCell()
Render an empty cell
renderFileCell
public void renderFileCell(VersionedFile file,
boolean withIcon,
WebRepositoryIntegration webRepository) Render a cell containing a file
file - the filewithIcon - display an icon in front of the filename?webRepository - for creating links; might be null
renderIntegerCell
public void renderIntegerCell(int value)
Render an integer cell
value - the cell's content
renderIntegerCell
public void renderIntegerCell(int value,
int total) Render an integer cell, showing both the integer value and
a percentage of a total
value - the cell's contenttotal - the total, worth 100%
renderLinkCell
public void renderLinkCell(String url,
String label) Render a cell containing a link.
renderPercentageCell
public void renderPercentageCell(double ratio)
Render a percentage cell
ratio - the cell's content