Package net.sf.statcvs.renderer
Interface TableCellRenderer
-
- All Known Implementing Classes:
HTMLTableCellRenderer
,XMLRenderer
public interface TableCellRenderer
Interface for a class that turnsColumn
s into their representation for some output format, for example a HTML <td> or an XML element.- Version:
- $Id: TableCellRenderer.java,v 1.11 2008/04/02 11:22:15 benoitx Exp $
- Author:
- Richard Cyganiak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
renderAuthorCell(Author author)
Render a cell containing an authorvoid
renderAuthorIdCell(Author author)
Render a cell containing an author Idvoid
renderCell(java.lang.String content)
Render a generic table cellvoid
renderDirectoryCell(Directory directory)
Render a cell containing a directoryvoid
renderEmptyCell()
Render an empty cellvoid
renderFileCell(VersionedFile file, boolean withIcon, WebRepositoryIntegration webRepository)
Render a cell containing a filevoid
renderIntegerCell(int value)
Render an integer cellvoid
renderIntegerCell(int value, int total)
Render an integer cell, showing both the integer value and a percentage of a totalvoid
renderLinkCell(java.lang.String url, java.lang.String label)
Render a cell containing a link.void
renderPercentageCell(double ratio)
Render a percentage cell
-
-
-
Method Detail
-
renderCell
void renderCell(java.lang.String content)
Render a generic table cell- Parameters:
content
- the cell's content
-
renderEmptyCell
void renderEmptyCell()
Render an empty cell
-
renderIntegerCell
void renderIntegerCell(int value)
Render an integer cell- Parameters:
value
- the cell's content
-
renderIntegerCell
void renderIntegerCell(int value, int total)
Render an integer cell, showing both the integer value and a percentage of a total- Parameters:
value
- the cell's contenttotal
- the total, worth 100%
-
renderPercentageCell
void renderPercentageCell(double ratio)
Render a percentage cell- Parameters:
ratio
- the cell's content
-
renderAuthorCell
void renderAuthorCell(Author author)
Render a cell containing an author- Parameters:
author
- the author
-
renderAuthorIdCell
void renderAuthorIdCell(Author author)
Render a cell containing an author Id- Parameters:
author
- the author
-
renderDirectoryCell
void renderDirectoryCell(Directory directory)
Render a cell containing a directory- Parameters:
directory
- the directory
-
renderFileCell
void renderFileCell(VersionedFile file, boolean withIcon, WebRepositoryIntegration webRepository)
Render a cell containing a file- Parameters:
file
- the filewithIcon
- display an icon in front of the filename?webRepository
- for creating links; might be null
-
renderLinkCell
void renderLinkCell(java.lang.String url, java.lang.String label)
Render a cell containing a link.
-
-