|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.statcvs.renderer.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 |
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 |
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(CvsFile file,
boolean withIcon)
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 |
renderPercentageCell(double ratio)
Render a percentage cell to HTML |
| 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 TableCellRenderercontent - the cell's contentpublic void renderEmptyCell()
renderEmptyCell in interface TableCellRendererpublic void renderIntegerCell(int value)
renderIntegerCell in interface TableCellRenderervalue - the cell's content
public 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 renderDirectoryCell(Directory directory)
renderDirectoryCell in interface TableCellRendererdirectory - the directory
public void renderFileCell(CvsFile file,
boolean withIcon)
renderFileCell in interface TableCellRendererfile - the filewithIcon - display an icon in front of the filename?public java.lang.String getColumnHead()
public java.lang.String getRowHead()
public java.lang.String getTableCell()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||