public abstract class AbstractLineWrapper extends AbstractLoggableComponent implements LineWrapper
LineWrapper interface.| Constructor and Description |
|---|
AbstractLineWrapper()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
wrap(Appendable appendable,
TextTableInfo tableInfo,
String columnText,
TextColumnInfo columnInfo)
|
int |
wrap(Appendable appendable,
TextTableInfo tableInfo,
String column1Text,
TextColumnInfo column1Info,
String column2Text,
TextColumnInfo column2Info)
This method is like
LineWrapper.wrap(Appendable, TextTableInfo, String, TextColumnInfo) but for a two-column
layout. |
int |
wrap(Appendable appendable,
TextTableInfo tableInfo,
String column1Text,
TextColumnInfo column1Info,
String column2Text,
TextColumnInfo column2Info,
String column3Text,
TextColumnInfo column3Info)
This method is like
LineWrapper.wrap(Appendable, TextTableInfo, String, TextColumnInfo) but for a
three-column layout. |
createLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwrappublic int wrap(Appendable appendable, TextTableInfo tableInfo, String columnText, TextColumnInfo columnInfo)
LineWrapperappends the given text to the
appendable. If the text is longer than the number of characters
left in the current line, the text is wrapped. This means the current line is filled with parts
of the text, a newline is added and the next line is
filled with the same procedure until the entire text is processed. The last line is NOT
terminated with a newline but ends with the last character of the text.wrap in interface LineWrapperappendable - is the target where to append to.tableInfo - is the TextTableInfo for the general layout.columnText - is the text to append. The text may contain newline characters to indicate a line-break
is forced at those positions.columnInfo - holds the configuration like width,
alignment, indent, etc.appended excluding the
first line. In other words the number of
line separators that have been
appended.public int wrap(Appendable appendable, TextTableInfo tableInfo, String column1Text, TextColumnInfo column1Info, String column2Text, TextColumnInfo column2Info)
LineWrapperLineWrapper.wrap(Appendable, TextTableInfo, String, TextColumnInfo) but for a two-column
layout.wrap in interface LineWrapperappendable - is the target where to append to.tableInfo - is the TextTableInfo for the general layout.column1Text - is the text for the first column.column1Info - is the TextColumnInfo of the first column.column2Text - is the text for the second column.column2Info - is the TextColumnInfo of the second column.appended excluding the
first line. In other words the number of
line separators that have been
appended.LineWrapper.wrap(Appendable, TextTableInfo, TextColumn[])public int wrap(Appendable appendable, TextTableInfo tableInfo, String column1Text, TextColumnInfo column1Info, String column2Text, TextColumnInfo column2Info, String column3Text, TextColumnInfo column3Info)
LineWrapperLineWrapper.wrap(Appendable, TextTableInfo, String, TextColumnInfo) but for a
three-column layout.wrap in interface LineWrapperappendable - is the target where to append to.tableInfo - is the TextTableInfo for the general layout.column1Text - is the text for the first column.column1Info - is the TextColumnInfo of the first column.column2Text - is the text for the second column.column2Info - is the TextColumnInfo of the second column.column3Text - is the text for the third column.column3Info - is the TextColumnInfo of the third column.appended excluding the
first line. In other words the number of
line separators that have been
appended.LineWrapper.wrap(Appendable, TextTableInfo, TextColumn[])Copyright © 2001–2016 mmm-Team. All rights reserved.