|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.renderer.HTMLTableCellRenderer
public class HTMLTableCellRenderer
Helper class for rendering different types of table cells and table heads to HTML
Constructor Summary | |
---|---|
HTMLTableCellRenderer()
|
Method Summary | |
---|---|
java.lang.String |
getColumnHead()
Return the results of the last renderCell call |
java.lang.String |
getEvenRowFormat()
|
java.lang.String |
getOddRowFormat()
|
MarkupSyntax |
getOutput()
|
java.lang.String |
getRowHead()
Return the results of the last renderCell call as a row head |
java.lang.String |
getTableCell()
Return the results of the last renderCell call as an ordinary table cell |
void |
renderAuthorCell(Author author)
Render a cell containing an author to HTML |
void |
renderAuthorIdCell(Author author)
Render a cell containing an author Id to HTML |
void |
renderCell(java.lang.String content)
Render a generic table cell to HTML |
void |
renderDirectoryCell(Directory directory)
Render a cell containing a directory to HTML |
void |
renderEmptyCell()
Render an empty cell to HTML |
void |
renderFileCell(VersionedFile file,
boolean withIcon,
WebRepositoryIntegration webRepository)
Render a cell containing a file to HTML |
void |
renderIntegerCell(int value)
Render an integer cell to HTML |
void |
renderIntegerCell(int value,
int total)
Render an integer cell to HTML, showing both the integer value and a percentage of a total |
void |
renderLinkCell(java.lang.String url,
java.lang.String label)
Render a cell containing a repository tag. |
void |
renderPercentageCell(double ratio)
Render a percentage cell to HTML |
void |
setOutput(MarkupSyntax output)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTMLTableCellRenderer()
Method Detail |
---|
public void renderCell(java.lang.String content)
renderCell
in interface TableCellRenderer
content
- the cell's contentpublic void renderEmptyCell()
renderEmptyCell
in interface TableCellRenderer
public void renderIntegerCell(int value)
renderIntegerCell
in interface TableCellRenderer
value
- the cell's contentpublic void renderIntegerCell(int value, int total)
renderIntegerCell
in interface TableCellRenderer
value
- the cell's contenttotal
- the total, worth 100%public void renderPercentageCell(double ratio)
renderPercentageCell
in interface TableCellRenderer
ratio
- the cell's contentpublic void renderAuthorCell(Author author)
renderAuthorCell
in interface TableCellRenderer
author
- the authorpublic void renderAuthorIdCell(Author author)
renderAuthorIdCell
in interface TableCellRenderer
author
- the authorpublic void renderDirectoryCell(Directory directory)
renderDirectoryCell
in interface TableCellRenderer
directory
- the directorypublic void renderFileCell(VersionedFile file, boolean withIcon, WebRepositoryIntegration webRepository)
renderFileCell
in interface TableCellRenderer
file
- the filewithIcon
- display an icon in front of the filename?webRepository
- for creating links; might be nullpublic void renderLinkCell(java.lang.String url, java.lang.String label)
renderLinkCell
in interface TableCellRenderer
public java.lang.String getColumnHead()
public java.lang.String getRowHead()
public java.lang.String getTableCell()
public MarkupSyntax getOutput()
public void setOutput(MarkupSyntax output)
output
- the output to setpublic java.lang.String getOddRowFormat()
public java.lang.String getEvenRowFormat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |