TableCellRendererpublic class HTMLTableCellRenderer extends java.lang.Object implements TableCellRenderer
| Constructor | Description |
|---|---|
HTMLTableCellRenderer() |
| Modifier and Type | Method | Description |
|---|---|---|
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) |
public void renderCell(java.lang.String content)
renderCell in interface TableCellRenderercontent - the cell's contentpublic void renderEmptyCell()
renderEmptyCell in interface TableCellRendererpublic void renderIntegerCell(int value)
renderIntegerCell in interface TableCellRenderervalue - the cell's contentpublic void renderIntegerCell(int value,
int total)
renderIntegerCell in interface TableCellRenderervalue - the cell's contenttotal - the total, worth 100%public void renderPercentageCell(double ratio)
renderPercentageCell in interface TableCellRendererratio - the cell's contentpublic void renderAuthorCell(Author author)
renderAuthorCell in interface TableCellRendererauthor - the authorpublic void renderAuthorIdCell(Author author)
renderAuthorIdCell in interface TableCellRendererauthor - the authorpublic void renderDirectoryCell(Directory directory)
renderDirectoryCell in interface TableCellRendererdirectory - the directorypublic void renderFileCell(VersionedFile file, boolean withIcon, WebRepositoryIntegration webRepository)
renderFileCell in interface TableCellRendererfile - 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 TableCellRendererpublic 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()