public interface TableBuilder extends TablePrinter, org.refcodes.mixin.RowWidthAccessor, org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<TableBuilder>, org.refcodes.mixin.PrintStreamAccessor.PrintStreamProperty, org.refcodes.mixin.PrintStreamAccessor.PrintStreamBuilder<TableBuilder>
org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<B extends org.refcodes.mixin.RowWidthAccessor.RowWidthBuilder<?>>, org.refcodes.mixin.RowWidthAccessor.RowWidthMutator, org.refcodes.mixin.RowWidthAccessor.RowWidthProperty
org.refcodes.mixin.PrintStreamAccessor.PrintStreamBuilder<B extends org.refcodes.mixin.PrintStreamAccessor.PrintStreamBuilder<?>>, org.refcodes.mixin.PrintStreamAccessor.PrintStreamMutator, org.refcodes.mixin.PrintStreamAccessor.PrintStreamProperty
Modifier and Type | Method and Description |
---|---|
TableBuilder |
addColumn()
Adds a column and returns this
TableBuilder instance as of the
Builder-Pattern. |
default void |
printHeader(String... aColumns)
Prints the table's header to the
PrintStream configured for this
PrintWriter with the content of the provided columns. |
default void |
printHeaderBegin()
Prints out a header begin to the
PrintStream configured for this
PrintWriter , for convenience reasons, this is being encapsulated
by the TablePrinter.printHeader(String...) method. |
default void |
printHeaderContinue(String... aColumns)
Continues to print out a begun header to the
PrintStream
configured for this PrintWriter , for convenience reasons, this is
being encapsulated by the TablePrinter.printHeader(String...) method. |
default void |
printHeaderEnd()
Prints out a header end to the
PrintStream configured for this
PrintWriter , for convenience reasons, this is being encapsulated
by the TablePrinter.printHeader(String...) method. |
default void |
printHeaderEnd(TableBuilder aTablePrinter)
Ends the headers of the provided
TableBuilder for this table
printer to continue to the PrintStream configured for this
PrintWriter ; different header widths and column widths are taken
care of, so it is a pleasure to mix different TableBuilder s,
especially when empty columns may result in better using another column
layout making better use of the available width. |
default void |
printRow(String... aColumns)
Prints the table's (next) row to the
PrintStream configured for
this PrintWriter with the content of the provided columns. |
default void |
printRowBegin()
Prints out a row begin to the
PrintStream configured for this
PrintWriter , for convenience reasons, this is being encapsulated
by the TablePrinter.printRow(String...) method. |
default void |
printRowContinue(String... aColumns)
Continues a print out begun row to the
PrintStream configured for
this PrintWriter , for convenience reasons, this is being
encapsulated by the TablePrinter.printRow(String...) method. |
default void |
printRowEnd(TableBuilder aTablePrinter)
Ends the rows of the provided
TableBuilder for this table printer
to continue to the PrintStream configured for this
PrintWriter ; different row widths and column widths are taken
care of, so it is a pleasure to mix different TableBuilder s,
especially when empty columns may result in better using another column
layout making better use of the available width. |
default void |
printTail()
Finishes off the table by printing its closing to the
PrintStream
configured for this PrintWriter . |
int[] |
toColumnWidths()
Returns the currently calculated or configured column widths.
|
TableBuilder |
withBorderEscapeCode(String aEscapeCode)
Sets an overall ANSI Escape-Code for the borders and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withColumnFormatMetrics(ColumnFormatMetrics aColumnFormatMetrics)
Sets the current column's (the last added one with the
addColumn() method) format (including the width) and returns
this TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withColumnHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets the column's alignment mode for the header and the rows and returns
this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withColumnMoreTextMode(MoreTextMode aMoreTextMode)
Sets the column's "more" mode for the header and the rows and returns
this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withColumnSplitTextMode(SplitTextMode aSplitTextMode)
Sets the column's line split mode for the header and the rows and returns
this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withColumnTextFormatMode(TextFormatMode aTextFormatMode)
Sets the column's format mode for the header and the rows and returns
this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withColumnWidth(int aWidth)
Sets the current column's (the last added one with the
addColumn() method) absolute width () @link
ColumnWidthType#ABSOLUTE) and returns this TableBuilder instance
as of the Builder-Pattern. |
TableBuilder |
withColumnWidth(int aWidth,
ColumnWidthType aWidthType)
Sets the current column's (the last added one with the
addColumn() method) width and returns this TableBuilder
instance as of the Builder-Pattern. |
TableBuilder |
withColumnWidthMetrics(ColumnWidthMetrics aColumnWidthMetrics)
Sets the current column's (the last added one with the
addColumn() method) width and returns this TableBuilder
instance as of the Builder-Pattern. |
TableBuilder |
withEscapeCode(String aEscapeCode)
Sets an overall ANSI Escape-Code for the header, the rows as well as the
borders; and returns this
TableBuilder instance as of the builder
pattern. |
TableBuilder |
withEscapeCodes(boolean isEscapeCodesEnabled)
Sets an overall ANSI Escape-Code support for the
TableBuilder ,
for the rows as well as the borders; and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderColumnEscapeCode(String aEscapeCode)
Sets the column's header ANSI Escape-Code for the current header column
and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderColumnHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets the column's header alignment mode for the header and the rows and
returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderColumnMoreTextMode(MoreTextMode aMoreTextMode)
Sets the column's header "more" mode for the header and the rows and
returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderColumnSplitTextMode(SplitTextMode aSplitTextMode)
Sets the column's header line split mode for the header and the rows and
returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderColumnTextFormatMode(TextFormatMode aTextFormatMode)
Sets the column's header format mode for the header and the rows and
returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderEscapeCode(String aEscapeCode)
Sets an overall ANSI Escape-Code for the header and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets an overall alignment mode for the header and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderMoreTextMode(MoreTextMode aMoreTextMode)
Sets an overall "more" mode for the header and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderSplitTextMode(SplitTextMode aSplitTextMode)
Sets an overall line split mode for the header and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHeaderTextFormatMode(TextFormatMode aTextFormatMode)
Sets an overall format mode for the header and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets an overall alignment mode for the header and the rows and returns
this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withLeftBorder(boolean hasLeftBorder)
Sets whether to print the left border and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withLineBreak(String aLineBreak)
Sets the required line break and returns this
TableBuilder
instance as of the Builder-Pattern. |
TableBuilder |
withMoreTextMode(MoreTextMode aMoreTextMode)
Sets an overall "more" mode for the header and the rows and returns this
TableBuilder instance as of the Builder-Pattern. |
default TableBuilder |
withPrintStream(PrintStream aPrintStream)
Sets the print stream to be used when using the print methods of the
TableBuilder and returns this TableBuilder instance as of
the Builder-Pattern. |
TableBuilder |
withResetEscapeCode(String aEscapeCode)
Sets the ANSI reset Escape-Code for this
TableBuilder instance as
of the Builder-Pattern. |
TableBuilder |
withRightBorder(boolean hasRightBorder)
Sets whether to print the right border and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowColumnEscapeCode(String aEscapeCode)
Sets the column's header ANSI Escape-Code for the current row column and
returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowColumnHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets the column's header alignment mode for the header and the rows and
returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowColumnMoreTextMode(MoreTextMode aMoreTextMode)
Sets the column's header "more" mode for the header and the rows and
returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowColumnSplitTextMode(SplitTextMode aSplitTextMode)
Sets the column's header line split mode for the header and the rows and
returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowColumnTextFormatMode(TextFormatMode aTextFormatMode)
Sets the column's row format mode for the header and the rows and returns
this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowEscapeCode(String aEscapeCode)
Sets an overall ANSI Escape-Code for the rows and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
Sets an overall alignment mode for the rows and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowMoreTextMode(MoreTextMode aMoreTextMode)
Sets an overall "more" mode for the rows and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowSplitTextMode(SplitTextMode aSplitTextMode)
Sets an overall line split mode for the rows and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withRowTextFormatMode(TextFormatMode aTextFormatMode)
Sets an overall format mode for the rows and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withSplitTextMode(SplitTextMode aSplitTextMode)
Sets an overall line split mode for the header and the rows and returns
this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withTableStyle(TableStyle aTableStyle)
Sets the
TableStyle to use when printing and returns this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withTextColumnEscapeCode(String aEscapeCode)
Sets the column's ANSI Escape-Code for the current (header and row)
column and returns this
TableBuilder instance as of the builder
pattern. |
TableBuilder |
withTextEscapeCode(String aEscapeCode)
Sets an overall ANSI Escape-Code for the header and the rows and returns
this
TableBuilder instance as of the Builder-Pattern. |
TableBuilder |
withTextFormatMode(TextFormatMode aTextFormatMode)
Sets an overall format mode for the header and the rows and returns this
TableBuilder instance as of the Builder-Pattern. |
getTableStatus, printHeader, printHeaderComplete, printHeaderContinue, printRow, printRowContinue, setTableStatus, toHeader, toHeader, toHeaderBegin, toHeaderComplete, toHeaderContinue, toHeaderContinue, toHeaderEnd, toHeaderEnd, toRow, toRow, toRowBegin, toRowContinue, toRowContinue, toRowEnd, toTail
TableBuilder addColumn()
TableBuilder
instance as of the
Builder-Pattern.TableBuilder
instance to continue configuration.TableBuilder withColumnWidth(int aWidth, ColumnWidthType aWidthType) throws IllegalStateException
addColumn()
method) width and returns this TableBuilder
instance as of the Builder-Pattern.aWidth
- The width for the column.aWidthType
- The type the width is of, e.g.
ColumnWidthType.RELATIVE
or
ColumnWidthType.ABSOLUTE
TableBuilder
instance to continue configuration.IllegalStateException
- in case there is none column already added.TableBuilder withColumnWidth(int aWidth) throws IllegalStateException
addColumn()
method) absolute width () @link
ColumnWidthType#ABSOLUTE) and returns this TableBuilder
instance
as of the Builder-Pattern.
Same as calling "withColumnWidth(int, ColumnWidthType.ABSOLUTE)}"aWidth
- The width for the column.TableBuilder
instance to continue configuration.IllegalStateException
- in case there is none column already added.TableBuilder withColumnWidthMetrics(ColumnWidthMetrics aColumnWidthMetrics) throws IllegalStateException
addColumn()
method) width and returns this TableBuilder
instance as of the Builder-Pattern.aColumnWidthMetrics
- The width and the ColumnWidthType
(
ColumnWidthType.RELATIVE
or
ColumnWidthType.ABSOLUTE
) of the column.TableBuilder
instance to continue configuration.IllegalStateException
- in case there is none column already added.TableBuilder withColumnFormatMetrics(ColumnFormatMetrics aColumnFormatMetrics) throws IllegalStateException
addColumn()
method) format (including the width) and returns
this TableBuilder
instance as of the Builder-Pattern.aColumnFormatMetrics
- The width and the ColumnWidthType
(
ColumnWidthType.RELATIVE
or
ColumnWidthType.ABSOLUTE
) of the column as well as the
format.TableBuilder
instance to continue configuration.IllegalStateException
- in case there is none column already added.TableBuilder withLeftBorder(boolean hasLeftBorder)
TableBuilder
instance as of the Builder-Pattern.hasLeftBorder
- True in case a left border is to be printed, elser
falseTableBuilder
instance to continue configuration.TableBuilder withRightBorder(boolean hasRightBorder)
TableBuilder
instance as of the Builder-Pattern.hasRightBorder
- True in case a right border is to be printed, elser
falseTableBuilder
instance to continue configuration.TableBuilder withTableStyle(TableStyle aTableStyle)
TableStyle
to use when printing and returns this
TableBuilder
instance as of the Builder-Pattern.aTableStyle
- The TableStyle
defining the tables style to be
used when printing the table borders.TableBuilder
instance to continue configuration.TableBuilder withLineBreak(String aLineBreak)
TableBuilder
instance as of the Builder-Pattern.aLineBreak
- The line break character to use, by default the
platform specific one is used.TableBuilder
instance to continue configuration.default TableBuilder withPrintStream(PrintStream aPrintStream)
TableBuilder
and returns this TableBuilder
instance as of
the Builder-Pattern.withPrintStream
in interface org.refcodes.mixin.PrintStreamAccessor.PrintStreamBuilder<TableBuilder>
aPrintStream
- The PrintStream
to be used when printing out
the table.TableBuilder
instance to continue configuration.TableBuilder withEscapeCodes(boolean isEscapeCodesEnabled)
TableBuilder
,
for the rows as well as the borders; and returns this
TableBuilder
instance as of the Builder-Pattern. In case of being
set to Boolean.FALSE
, then an ANSI support is disabled
altogether, else it is enabled (again, if already configured). The latest
setting wins.isEscapeCodesEnabled
- True to enable, false to disable Escape-Code
support altogether.TableBuilder
instance to continue configuration.TableBuilder withEscapeCode(String aEscapeCode)
TableBuilder
instance as of the builder
pattern. In case an ANSI Escape-Codes is set, then an ANSI Reset-Code is
prepended to the according text being printed. The latest ANSI escape
code set wins.aEscapeCode
- The String
to be used for ANSI escaping.TableBuilder
instance to continue configuration.TableBuilder withBorderEscapeCode(String aEscapeCode)
TableBuilder
instance as of the Builder-Pattern. In case an ANSI
Escape-Codes is set, then the ANSI Escape-Code is prepended and an ANSI
Reset-Code is appended to the according text being printed. The latest
ANSI Escape-Code set wins.aEscapeCode
- The String
to be used for ANSI escaping.TableBuilder
instance to continue configuration.TableBuilder withTextEscapeCode(String aEscapeCode)
TableBuilder
instance as of the Builder-Pattern. In case an
ANSI Escape-Codes is set, then the ANSI Escape-Code is prepended and an
ANSI Reset-Code is appended to the according text being printed. The
latest ANSI Escape-Code set wins.aEscapeCode
- The String
to be used for ANSI escaping.TableBuilder
instance to continue configuration.TableBuilder withHeaderEscapeCode(String aEscapeCode)
TableBuilder
instance as of the Builder-Pattern. The latest ANSI
Escape-Code being set wins.aEscapeCode
- The String
to be used for ANSI escaping.TableBuilder
instance to continue configuration.TableBuilder withRowEscapeCode(String aEscapeCode)
TableBuilder
instance as of the Builder-Pattern. The latest ANSI
Escape-Code being set wins.aEscapeCode
- The String
to be used for ANSI escaping.TableBuilder
instance to continue configuration.TableBuilder withTextColumnEscapeCode(String aEscapeCode)
TableBuilder
instance as of the builder
pattern. The latest ANSI Escape-Code being set wins.aEscapeCode
- The String
to be used for ANSI escaping.TableBuilder
instance to continue configuration.TableBuilder withHeaderColumnEscapeCode(String aEscapeCode)
TableBuilder
instance as of the Builder-Pattern.
The latest ANSI Escape-Code being set wins.aEscapeCode
- The String
to be used for ANSI escaping.TableBuilder
instance to continue configuration.TableBuilder withRowColumnEscapeCode(String aEscapeCode)
TableBuilder
instance as of the Builder-Pattern. The
latest ANSI Escape-Code being set wins.aEscapeCode
- The String
to be used for ANSI escaping.TableBuilder
instance to continue configuration.TableBuilder withResetEscapeCode(String aEscapeCode)
TableBuilder
instance as
of the Builder-Pattern. In case an ANSI Escape-Codes is set, then this
ANSI Reset-Code is prepended to the according text being printed.aEscapeCode
- The String
to be used for resetting ANSI
escaping.TableBuilder
instance to continue configuration.TableBuilder withHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
alignment mode being set wins.aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.TableBuilder
instance to continue configuration.TableBuilder withHeaderHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
alignment mode being set wins.aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.TableBuilder
instance to continue configuration.TableBuilder withRowHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
alignment mode being set wins.aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.TableBuilder
instance to continue configuration.TableBuilder withColumnHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
alignment mode being set wins.aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.TableBuilder
instance to continue configuration.TableBuilder withHeaderColumnHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
TableBuilder
instance as of the Builder-Pattern. The
latest alignment mode being set wins.aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.TableBuilder
instance to continue configuration.TableBuilder withRowColumnHorizAlignTextMode(HorizAlignTextMode aHorizAlignTextMode)
TableBuilder
instance as of the Builder-Pattern. The
latest alignment mode being set wins.aHorizAlignTextMode
- The HorizAlignTextMode
to be used for
aligning the text.TableBuilder
instance to continue configuration.TableBuilder withTextFormatMode(TextFormatMode aTextFormatMode)
TableBuilder
instance as of the Builder-Pattern. The latest
format mode being set wins.aTextFormatMode
- The TextFormatMode
to be used for
formating the text.TableBuilder
instance to continue configuration.TableBuilder withHeaderTextFormatMode(TextFormatMode aTextFormatMode)
TableBuilder
instance as of the Builder-Pattern. The latest
format mode being set wins.aTextFormatMode
- The TextFormatMode
to be used for
formating the text.TableBuilder
instance to continue configuration.TableBuilder withRowTextFormatMode(TextFormatMode aTextFormatMode)
TableBuilder
instance as of the Builder-Pattern. The latest
format mode being set wins.aTextFormatMode
- The TextFormatMode
to be used for
formating the text.TableBuilder
instance to continue configuration.TableBuilder withColumnTextFormatMode(TextFormatMode aTextFormatMode)
TableBuilder
instance as of the Builder-Pattern. The latest
format mode being set wins.aTextFormatMode
- The TextFormatMode
to be used for
formating the text.TableBuilder
instance to continue configuration.TableBuilder withHeaderColumnTextFormatMode(TextFormatMode aTextFormatMode)
TableBuilder
instance as of the Builder-Pattern. The
latest format mode being set wins.aTextFormatMode
- The TextFormatMode
to be used for
formating the text.TableBuilder
instance to continue configuration.TableBuilder withRowColumnTextFormatMode(TextFormatMode aTextFormatMode)
TableBuilder
instance as of the Builder-Pattern. The latest
format mode being set wins.aTextFormatMode
- The TextFormatMode
to be used for
formating the text.TableBuilder
instance to continue configuration.TableBuilder withSplitTextMode(SplitTextMode aSplitTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
line split mode being set wins.aSplitTextMode
- The SplitTextMode
to be used for aligning
the text.TableBuilder
instance to continue configuration.TableBuilder withHeaderSplitTextMode(SplitTextMode aSplitTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest line
split mode being set wins.aSplitTextMode
- The SplitTextMode
to be used for aligning
the text.TableBuilder
instance to continue configuration.TableBuilder withRowSplitTextMode(SplitTextMode aSplitTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest line
split mode being set wins.aSplitTextMode
- The SplitTextMode
to be used for aligning
the text.TableBuilder
instance to continue configuration.TableBuilder withColumnSplitTextMode(SplitTextMode aSplitTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
line split mode being set wins.aSplitTextMode
- The SplitTextMode
to be used for aligning
the text.TableBuilder
instance to continue configuration.TableBuilder withHeaderColumnSplitTextMode(SplitTextMode aSplitTextMode)
TableBuilder
instance as of the Builder-Pattern. The
latest line split mode being set wins.aSplitTextMode
- The SplitTextMode
to be used for aligning
the text.TableBuilder
instance to continue configuration.TableBuilder withRowColumnSplitTextMode(SplitTextMode aSplitTextMode)
TableBuilder
instance as of the Builder-Pattern. The
latest line split mode being set wins.aSplitTextMode
- The SplitTextMode
to be used for aligning
the text.TableBuilder
instance to continue configuration.TableBuilder withMoreTextMode(MoreTextMode aMoreTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
"more" mode being set wins.aMoreTextMode
- The MoreTextMode
to be used for aligning the
text.TableBuilder
instance to continue configuration.TableBuilder withHeaderMoreTextMode(MoreTextMode aMoreTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
"more" mode being set wins.aMoreTextMode
- The MoreTextMode
to be used for aligning the
text.TableBuilder
instance to continue configuration.TableBuilder withRowMoreTextMode(MoreTextMode aMoreTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
"more" mode being set wins.aMoreTextMode
- The MoreTextMode
to be used for aligning the
text.TableBuilder
instance to continue configuration.TableBuilder withColumnMoreTextMode(MoreTextMode aMoreTextMode)
TableBuilder
instance as of the Builder-Pattern. The latest
"more" mode being set wins.aMoreTextMode
- The MoreTextMode
to be used for aligning the
text.TableBuilder
instance to continue configuration.TableBuilder withHeaderColumnMoreTextMode(MoreTextMode aMoreTextMode)
TableBuilder
instance as of the Builder-Pattern. The
latest "more" mode being set wins.aMoreTextMode
- The MoreTextMode
to be used for aligning the
text.TableBuilder
instance to continue configuration.TableBuilder withRowColumnMoreTextMode(MoreTextMode aMoreTextMode)
TableBuilder
instance as of the Builder-Pattern. The
latest "more" mode being set wins.aMoreTextMode
- The MoreTextMode
to be used for aligning the
text.TableBuilder
instance to continue configuration.int[] toColumnWidths()
default void printHeaderBegin()
PrintStream
configured for this
PrintWriter
, for convenience reasons, this is being encapsulated
by the TablePrinter.printHeader(String...)
method. Use this method in case
you need more control on the header construction than
TablePrinter.printHeader(String...)
can provide you.printHeaderBegin
in interface TablePrinter
default void printHeaderContinue(String... aColumns)
PrintStream
configured for this PrintWriter
, for convenience reasons, this is
being encapsulated by the TablePrinter.printHeader(String...)
method. Use
this method in case you need more control on the header construction than
TablePrinter.printHeader(String...)
can provide you.printHeaderContinue
in interface TablePrinter
aColumns
- the a columnsdefault void printHeaderEnd(TableBuilder aTablePrinter)
TableBuilder
for this table
printer to continue to the PrintStream
configured for this
PrintWriter
; different header widths and column widths are taken
care of, so it is a pleasure to mix different TableBuilder
s,
especially when empty columns may result in better using another column
layout making better use of the available width.printHeaderEnd
in interface TablePrinter
aTablePrinter
- The TableBuilder
to which to append this
TableBuilder
's headers.default void printHeaderEnd()
PrintStream
configured for this
PrintWriter
, for convenience reasons, this is being encapsulated
by the TablePrinter.printHeader(String...)
method. Use this method in case
you need more control on the header construction than
TablePrinter.printHeader(String...)
can provide you.printHeaderEnd
in interface TablePrinter
default void printRowBegin()
PrintStream
configured for this
PrintWriter
, for convenience reasons, this is being encapsulated
by the TablePrinter.printRow(String...)
method. Use this method in case you
need more control on the row construction than
TablePrinter.printRow(String...)
can provide you.printRowBegin
in interface TablePrinter
default void printRowContinue(String... aColumns)
PrintStream
configured for
this PrintWriter
, for convenience reasons, this is being
encapsulated by the TablePrinter.printRow(String...)
method. Use this method
in case you need more control on the header construction than
TablePrinter.printRow(String...)
can provide you.printRowContinue
in interface TablePrinter
aColumns
- the a columnsdefault void printRowEnd(TableBuilder aTablePrinter)
TableBuilder
for this table printer
to continue to the PrintStream
configured for this
PrintWriter
; different row widths and column widths are taken
care of, so it is a pleasure to mix different TableBuilder
s,
especially when empty columns may result in better using another column
layout making better use of the available width.printRowEnd
in interface TablePrinter
aTablePrinter
- The TableBuilder
to which to append this
TableBuilder
's rows.default void printHeader(String... aColumns)
PrintStream
configured for this
PrintWriter
with the content of the provided columns.printHeader
in interface TablePrinter
aColumns
- The columns to be used in the table's header.default void printRow(String... aColumns)
PrintStream
configured for
this PrintWriter
with the content of the provided columns. Call
this method for each row to print out.printRow
in interface TablePrinter
aColumns
- The columns to be used in the (next) table's row.default void printTail()
PrintStream
configured for this PrintWriter
.printTail
in interface TablePrinter
Copyright © 2017. All rights reserved.