public class AT_Row extends Object implements IsTableRow
Row of an AsciiTable.
| Modifier and Type | Field and Description |
|---|---|
protected AT_RowContext |
ctx
The row context.
|
| Constructor and Description |
|---|
AT_Row() |
| Modifier and Type | Method and Description |
|---|---|
static AT_Row |
createContentRow(Object[] content)
Creates a new row with content with default cell context and a normal row style.
|
static AT_Row |
createContentRow(Object[] content,
TableRowStyle style)
Creates a new row with content with given cell context and a normal row style.
|
static AT_Row |
createRule(TableRowType type,
TableRowStyle style)
Creates a new row representing a rule.
|
LinkedList<AT_Cell> |
getCells() |
AT_RowContext |
getContext() |
AT_Row |
setCharTranslator(CharacterTranslator charTranslator)
Sets the character translator for all cells in the row.
|
AT_Row |
setHtmlElementTranslator(HtmlElementTranslator htmlElementTranslator)
Sets the HTML entity translator for all cells in the row.
|
AT_Row |
setPadding(int padding)
Sets all padding for all cells in the row to the same value.
|
AT_Row |
setPaddingBottom(int paddingBottom)
Sets the bottom padding for all cells in the row.
|
AT_Row |
setPaddingBottomChar(Character paddingBottomChar)
Sets the bottom padding character for all cells in the row.
|
AT_Row |
setPaddingLeft(int paddingLeft)
Sets the left padding for all cells in the row.
|
AT_Row |
setPaddingLeftChar(Character paddingLeftChar)
Sets the left padding character for all cells in the row.
|
AT_Row |
setPaddingLeftRight(int padding)
Sets left and right padding for all cells in the row.
|
AT_Row |
setPaddingLeftRight(int paddingLeft,
int paddingRight)
Sets left and right padding for all cells in the row (only if both values are not smaller than 0).
|
AT_Row |
setPaddingRight(int paddingRight)
Sets the right padding for all cells in the row.
|
AT_Row |
setPaddingRightChar(Character paddingRightChar)
Sets the right padding character for all cells in the row.
|
AT_Row |
setPaddingTop(int paddingTop)
Sets the top padding for all cells in the row.
|
AT_Row |
setPaddingTopBottom(int padding)
Sets top and bottom padding for all cells in the row.
|
AT_Row |
setPaddingTopBottom(int paddingTop,
int paddingBottom)
Sets top and bottom padding for all cells in the row (only if both values are not smaller than 0).
|
AT_Row |
setPaddingTopChar(Character paddingTopChar)
Sets the top padding character for all cells in the row.
|
AT_Row |
setTargetTranslator(TargetTranslator targetTranslator)
Sets the target translator for all cells in the row.
|
AT_Row |
setTextAlignment(TextAlignment textAlignment)
Sets the text alignment for all cells in the row.
|
protected AT_RowContext ctx
The row context.
public AT_RowContext getContext()
getContext in interface IsTableRowgetContext in interface HasObjectContextpublic LinkedList<AT_Cell> getCells()
getCells in interface IsTableRowpublic static AT_Row createRule(TableRowType type, TableRowStyle style)
Creates a new row representing a rule.
type - the type for the rule row, must not be null nor TableRowType.CONTENT nor TableRowType.UNKNOWNstyle - the style for the rule row, must not be null nor TableRowStyle.UNKNOWN{@link - NullPointerException} if type or style where null{@link - IllegalStateException} if type or style where unknown or if type was TableRowType.CONTENTpublic static AT_Row createContentRow(Object[] content)
Creates a new row with content with default cell context and a normal row style.
content - the content for the row, each member of the array represents the content for a cell in the row, must not be null but can contain null members{@link - NullPointerException} if content was nullpublic static AT_Row createContentRow(Object[] content, TableRowStyle style)
Creates a new row with content with given cell context and a normal row style.
content - the content for the row, each member of the array represents the content for a cell in the row, must not be null but can contain null members{@link - NullPointerException} if content was nullpublic AT_Row setPadding(int padding)
Sets all padding for all cells in the row to the same value.
padding - new padding for top, bottom, left, and right, ignored if smaller than 0public AT_Row setPaddingBottom(int paddingBottom)
Sets the bottom padding for all cells in the row.
paddingBottom - new padding, ignored if smaller than 0public AT_Row setPaddingBottomChar(Character paddingBottomChar)
Sets the bottom padding character for all cells in the row.
paddingBottomChar - new padding character, ignored if nullpublic AT_Row setPaddingLeft(int paddingLeft)
Sets the left padding for all cells in the row.
paddingLeft - new padding, ignored if smaller than 0public AT_Row setPaddingLeftChar(Character paddingLeftChar)
Sets the left padding character for all cells in the row.
paddingLeftChar - new padding character, ignored if nullpublic AT_Row setPaddingLeftRight(int padding)
Sets left and right padding for all cells in the row.
padding - new padding for left and right, ignored if smaller than 0public AT_Row setPaddingLeftRight(int paddingLeft, int paddingRight)
Sets left and right padding for all cells in the row (only if both values are not smaller than 0).
paddingLeft - new left padding, ignored if smaller than 0paddingRight - new right padding, ignored if smaller than 0public AT_Row setPaddingRight(int paddingRight)
Sets the right padding for all cells in the row.
paddingRight - new padding, ignored if smaller than 0public AT_Row setPaddingRightChar(Character paddingRightChar)
Sets the right padding character for all cells in the row.
paddingRightChar - new padding character, ignored if nullpublic AT_Row setPaddingTop(int paddingTop)
Sets the top padding for all cells in the row.
paddingTop - new padding, ignored if smaller than 0public AT_Row setPaddingTopBottom(int padding)
Sets top and bottom padding for all cells in the row.
padding - new padding for top and bottom, ignored if smaller than 0public AT_Row setPaddingTopBottom(int paddingTop, int paddingBottom)
Sets top and bottom padding for all cells in the row (only if both values are not smaller than 0).
paddingTop - new top padding, ignored if smaller than 0paddingBottom - new bottom padding, ignored if smaller than 0public AT_Row setPaddingTopChar(Character paddingTopChar)
Sets the top padding character for all cells in the row.
paddingTopChar - new padding character, ignored if nullpublic AT_Row setTextAlignment(TextAlignment textAlignment)
Sets the text alignment for all cells in the row.
textAlignment - new text alignmentNullPointerException - if the argument was null{@link - NullPointerException} if the argument was nullpublic AT_Row setTargetTranslator(TargetTranslator targetTranslator)
Sets the target translator for all cells in the row. It will also remove any other translator set. Nothing will happen if the argument is null.
targetTranslator - translatorpublic AT_Row setHtmlElementTranslator(HtmlElementTranslator htmlElementTranslator)
Sets the HTML entity translator for all cells in the row. It will also remove any other translator set. Nothing will happen if the argument is null.
htmlElementTranslator - translatorpublic AT_Row setCharTranslator(CharacterTranslator charTranslator)
Sets the character translator for all cells in the row. It will also remove any other translator set. Nothing will happen if the argument is null.
charTranslator - translatorCopyright © 2014–2017. All rights reserved.