Package | Description |
---|---|
fc.io | |
fc.jdbc |
Modifier and Type | Method and Description |
---|---|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.headerEveryPage(boolean show)
Specifies that page heading (if set) on each separate
page.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setAlign(HAlign align)
Sets the alignment of each cell.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setAutoFit(boolean autofit)
Sets each cell to expand to the size needed for the maximum
sized cell in that column.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellBorderHorizontal(String str)
Sets the string (typically a single character) that makes up a
horizontal cell border.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellBorderVertical(String str)
Sets the string (typically a single character) that makes up a
vertical cell border.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellCorner(String str)
Sets the string (typically a single character) that makes up a
cell corner.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellPadding(int width)
Specifies the cell padding for each cell.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellPaddingGlyph(String str)
Sets the string (typically a single character) that makes up
the cellpadding.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellSpacing(int width)
Specifies the cell spacing between cells.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellSpacingGlyph(String str)
Sets the string (typically a single character) that makes up
the cellspacing.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellWidth(int width)
Sets the width of each cell.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellWidthForColumn(int column,
int width)
Sets the cell width of the the specified column.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setCellWrap(boolean wrap)
Cell wrapping is on by default and the contents of any column that
exceed the width are wrapped within each cell (using the current platforms line
seperator for newlines within the cell).
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setPageSize(int lines)
Sets the number of lines on each page.
|
TablePrinter.PrintConfig |
TablePrinter.PrintConfig.setPrintBorders(boolean print)
Specifies whether table and cell borders are printed.
|
Constructor and Description |
---|
TablePrinter(int columnCount,
PrintStream ps,
TablePrinter.PrintConfig config)
Constructs a new table printer.
|
TablePrinter(int columnCount,
PrintWriter pw,
TablePrinter.PrintConfig config)
Constructs a new table printer.
|
Modifier and Type | Method and Description |
---|---|
static void |
QueryUtil.printResultSetTable(ResultSet rs,
PrintStream ps,
QueryUtil.ResultSetPrintDirection direction,
TablePrinter.PrintConfig config,
boolean headers)
Prints the specified result set in a tabular format.
|