|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.renderer.XMLRenderer
public class XMLRenderer
Helper class for rendering different types of table cells and table heads to XML
Constructor Summary | |
---|---|
XMLRenderer()
|
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 XML |
void |
renderAuthorIdCell(Author author)
Render a cell containing an author Id |
void |
renderCell(java.lang.String content)
Render a generic table cell to XML |
void |
renderDirectoryCell(Directory directory)
Render a cell containing a directory to XML |
void |
renderEmptyCell()
Render an empty cell to XML |
void |
renderFileCell(VersionedFile file,
boolean withIcon,
WebRepositoryIntegration webRepository)
Render a cell containing a file to XML |
void |
renderIntegerCell(int value)
Render an integer cell to XML |
void |
renderIntegerCell(int value,
int total)
Render an integer cell to XML, 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 XML |
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 XMLRenderer()
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 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()
public void renderAuthorIdCell(Author author)
TableCellRenderer
renderAuthorIdCell
in interface TableCellRenderer
author
- the author
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |