Interface ISimpleReport
-
- All Known Implementing Classes:
CsvReport,HtmlReport
public interface ISimpleReportA simple report interface.- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbold(StringBuilder sb, String text)Style text as bold.voidcloseReport(StringBuilder sb)Close the report.voidcloseTable(StringBuilder sb)Close a table.voidcloseTableCell(StringBuilder sb)Close a table.voidcloseTableRow(StringBuilder sb)Close a row.StringgetFileExtension()voidnewLine(StringBuilder sb, int n)Insert a newline in the report.voidopenReport(StringBuilder sb, String title)Open the report.voidopenTable(StringBuilder sb, int widthPercentage)Open a table.voidopenTableCell(StringBuilder sb, String color, String perc, String colSpan, String rowSpan)Open a table cell.voidopenTableRow(StringBuilder sb)Open a row.voidtitleH1(StringBuilder sb, String title)Heading 1 title.voidtitleH2(StringBuilder sb, String title)Heading 2 title.voidtitleH3(StringBuilder sb, String title)Heading 3 title.voidtitleH4(StringBuilder sb, String title)Heading 4 title.
-
-
-
Method Detail
-
getFileExtension
String getFileExtension()
- Returns:
- the file extention.
-
newLine
void newLine(StringBuilder sb, int n)
Insert a newline in the report.- Parameters:
sb- theStringBuilderto write to.n- the number of newlines to add.
-
openReport
void openReport(StringBuilder sb, String title)
Open the report.- Parameters:
sb- theStringBuilderto write to.title- a title for the report.
-
closeReport
void closeReport(StringBuilder sb)
Close the report.- Parameters:
sb- theStringBuilderto write to.
-
openTable
void openTable(StringBuilder sb, int widthPercentage)
Open a table.- Parameters:
sb- theStringBuilderto write to.widthPercentage-
-
closeTable
void closeTable(StringBuilder sb)
Close a table.- Parameters:
sb- theStringBuilderto write to.
-
openTableRow
void openTableRow(StringBuilder sb)
Open a row.- Parameters:
sb- theStringBuilderto write to.span- the vertical span of the row.
-
closeTableRow
void closeTableRow(StringBuilder sb)
Close a row.- Parameters:
sb- theStringBuilderto write to.
-
openTableCell
void openTableCell(StringBuilder sb, String color, String perc, String colSpan, String rowSpan)
Open a table cell.- Parameters:
sb- theStringBuilderto write to.color- background color for the cell.perc- percentage of the cell for the width.colSpan- col span of the cell.rowSpan- row span of the cell.
-
closeTableCell
void closeTableCell(StringBuilder sb)
Close a table.- Parameters:
sb- theStringBuilderto write to.
-
titleH1
void titleH1(StringBuilder sb, String title)
Heading 1 title.- Parameters:
sb- theStringBuilderto write to.title- the title text.
-
titleH2
void titleH2(StringBuilder sb, String title)
Heading 2 title.- Parameters:
sb- theStringBuilderto write to.title- the title text.
-
titleH3
void titleH3(StringBuilder sb, String title)
Heading 3 title.- Parameters:
sb- theStringBuilderto write to.title- the title text.
-
titleH4
void titleH4(StringBuilder sb, String title)
Heading 4 title.- Parameters:
sb- theStringBuilderto write to.title- the title text.
-
bold
void bold(StringBuilder sb, String text)
Style text as bold.- Parameters:
sb- theStringBuilderto write to.text- the text.
-
-