public class Html extends CustomPrinter
CustomPrinter for the printing of data in an Html style.ICustomPrinter.CellPositionbuilder, columnCount, columnIndex, columnWidth, isDrawingTable| Constructor and Description |
|---|
Html()
Main constructor.
|
Html(StringBuilder builder)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendTableHeaderValue(Object value,
ICustomPrinter.CellPosition position)
Add a header value to the table.
|
void |
appendTableLineSeparator()
Append a line separator to the builder.
|
void |
appendTableTitle(Object title)
Add a title to the table.
|
void |
appendTableValue(Object value,
ICustomPrinter.CellPosition position)
Add a single value to the table.
|
void |
appendValue(Object value)
Add a simple value.
|
void |
endTable()
End the table drawing.
|
void |
startTable(int columnWidth,
int columnCount)
Start the drawing of a table.
|
appendTableValue, toStringpublic Html(StringBuilder builder)
builder - Not null StringBuilder used for building the string.public Html()
public void appendTableLineSeparator()
ICustomPrinterpublic void startTable(int columnWidth,
int columnCount)
ICustomPrinterstartTable in interface ICustomPrinterstartTable in class CustomPrintercolumnWidth - Width in character number of a single column.columnCount - Count of column.public void endTable()
ICustomPrinterendTable in interface ICustomPrinterendTable in class CustomPrinterpublic void appendTableValue(Object value, ICustomPrinter.CellPosition position)
ICustomPrintervalue - Value to add to the table.public void appendTableHeaderValue(Object value, ICustomPrinter.CellPosition position)
ICustomPrintervalue - Header value to add to the table.public void appendTableTitle(Object title)
ICustomPrintertitle - Not null title to add to the table.public void appendValue(Object value)
ICustomPrinterICustomPrinter.appendTableValue(Object).value - Value to add.Copyright © 2021 CNRS. All rights reserved.