public class AT_CellContext extends Object implements IsTableCellContext
Context (all configuration parameters) for an AT_Cell.
| Modifier and Type | Field and Description |
|---|---|
protected CharacterTranslator |
charTranslator
A simple character translator.
|
protected HtmlElementTranslator |
htmlElementTranslator
A translator for HTML elements.
|
protected int |
paddingBottom
The padding for the bottom of a text line.
|
protected Character |
paddingBottomChar
The padding character for the bottom of a text line.
|
protected int |
paddingLeft
The padding for left side of a text line.
|
protected Character |
paddingLeftChar
The padding character for left side of a text line.
|
protected int |
paddingRight
The padding for right side of a text line.
|
protected Character |
paddingRightChar
The padding character for right side of a text line.
|
protected int |
paddingTop
The padding for the top of a text line.
|
protected Character |
paddingTopChar
The padding character for the top of a text line.
|
protected TargetTranslator |
targetTranslator
A translator for a particular target.
|
protected TextAlignment |
textAlignment
Text alignment, default is
TextAlignment.JUSTIFIED_LEFT. |
| Constructor and Description |
|---|
AT_CellContext() |
| Modifier and Type | Method and Description |
|---|---|
CharacterTranslator |
getCharTranslator()
Returns the character translator
|
HtmlElementTranslator |
getHtmlElementTranslator()
Returns the HTML entity translator.
|
int |
getPaddingBottom()
Returns the bottom padding.
|
Character |
getPaddingBottomChar()
Returns the bottom padding character.
|
int |
getPaddingLeft()
Returns the left padding.
|
Character |
getPaddingLeftChar()
Returns the left padding character.
|
int |
getPaddingRight()
Returns the right padding.
|
Character |
getPaddingRightChar()
Returns the right padding character.
|
int |
getPaddingTop()
Returns the top padding.
|
Character |
getPaddingTopChar()
Returns the top padding character.
|
TargetTranslator |
getTargetTranslator()
Returns the target translator.
|
TextAlignment |
getTextAlignment()
Returns the set text alignment.
|
void |
setCharTranslator(CharacterTranslator charTranslator)
Sets the character translator.
|
void |
setHtmlElementTranslator(HtmlElementTranslator htmlElementTranslator)
Sets the HTML entity translator.
|
AT_CellContext |
setPadding(int padding)
Sets all padding to the same value.
|
AT_CellContext |
setPaddingBottom(int paddingBottom)
Sets the bottom padding.
|
AT_CellContext |
setPaddingBottomChar(Character paddingBottomChar)
Sets the bottom padding character.
|
AT_CellContext |
setPaddingLeft(int paddingLeft)
Sets the left padding.
|
AT_CellContext |
setPaddingLeftChar(Character paddingLeftChar)
Sets the left padding character.
|
AT_CellContext |
setPaddingLeftRight(int padding)
Sets left and right padding.
|
AT_CellContext |
setPaddingLeftRight(int paddingLeft,
int paddingRight)
Sets left and right padding (only if both values are not smaller than 0).
|
AT_CellContext |
setPaddingRight(int paddingRight)
Sets the right padding.
|
AT_CellContext |
setPaddingRightChar(Character paddingRightChar)
Sets the right padding character.
|
AT_CellContext |
setPaddingTop(int paddingTop)
Sets the top padding.
|
AT_CellContext |
setPaddingTopBottom(int padding)
Sets top and bottom padding.
|
AT_CellContext |
setPaddingTopBottom(int paddingTop,
int paddingBottom)
Sets top and bottom padding (only if both values are not smaller than 0).
|
AT_CellContext |
setPaddingTopChar(Character paddingTopChar)
Sets the top padding character.
|
void |
setTargetTranslator(TargetTranslator targetTranslator)
Sets the target translator.
|
AT_CellContext |
setTextAlignment(TextAlignment textAlignment)
Sets the text alignment.
|
protected CharacterTranslator charTranslator
A simple character translator.
protected HtmlElementTranslator htmlElementTranslator
A translator for HTML elements.
protected int paddingBottom
The padding for the bottom of a text line.
protected Character paddingBottomChar
The padding character for the bottom of a text line.
protected int paddingLeft
The padding for left side of a text line.
protected Character paddingLeftChar
The padding character for left side of a text line.
protected int paddingRight
The padding for right side of a text line.
protected Character paddingRightChar
The padding character for right side of a text line.
protected int paddingTop
The padding for the top of a text line.
protected Character paddingTopChar
The padding character for the top of a text line.
protected TargetTranslator targetTranslator
A translator for a particular target.
protected TextAlignment textAlignment
Text alignment, default is TextAlignment.JUSTIFIED_LEFT.
public CharacterTranslator getCharTranslator()
Returns the character translator
public HtmlElementTranslator getHtmlElementTranslator()
Returns the HTML entity translator.
public int getPaddingBottom()
Returns the bottom padding.
public Character getPaddingBottomChar()
Returns the bottom padding character.
public int getPaddingLeft()
Returns the left padding.
public Character getPaddingLeftChar()
Returns the left padding character.
public int getPaddingRight()
Returns the right padding.
public Character getPaddingRightChar()
Returns the right padding character.
public int getPaddingTop()
Returns the top padding.
public Character getPaddingTopChar()
Returns the top padding character.
public TargetTranslator getTargetTranslator()
Returns the target translator.
public TextAlignment getTextAlignment()
Returns the set text alignment.
public void setCharTranslator(CharacterTranslator charTranslator)
Sets the character translator. It will also remove any other translator set. Nothing will happen if the argument is null.
charTranslator - translatorpublic void setHtmlElementTranslator(HtmlElementTranslator htmlElementTranslator)
Sets the HTML entity translator. It will also remove any other translator set. Nothing will happen if the argument is null.
htmlElementTranslator - translatorpublic AT_CellContext setPadding(int padding)
Sets all padding to the same value.
padding - new padding for top, bottom, left, and right, ignored if smaller than 0public AT_CellContext setPaddingBottom(int paddingBottom)
Sets the bottom padding.
paddingBottom - new padding, ignored if smaller than 0public AT_CellContext setPaddingBottomChar(Character paddingBottomChar)
Sets the bottom padding character.
paddingBottomChar - new padding character, ignored if nullpublic AT_CellContext setPaddingLeft(int paddingLeft)
Sets the left padding.
paddingLeft - new padding, ignored if smaller than 0public AT_CellContext setPaddingLeftChar(Character paddingLeftChar)
Sets the left padding character.
paddingLeftChar - new padding character, ignored if nullpublic AT_CellContext setPaddingLeftRight(int padding)
Sets left and right padding.
padding - new padding for left and right, ignored if smaller than 0public AT_CellContext setPaddingLeftRight(int paddingLeft, int paddingRight)
Sets left and right padding (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_CellContext setPaddingRight(int paddingRight)
Sets the right padding.
paddingRight - new padding, ignored if smaller than 0public AT_CellContext setPaddingRightChar(Character paddingRightChar)
Sets the right padding character.
paddingRightChar - new padding character, ignored if nullpublic AT_CellContext setPaddingTop(int paddingTop)
Sets the top padding.
paddingTop - new padding, ignored if smaller than 0public AT_CellContext setPaddingTopBottom(int padding)
Sets top and bottom padding.
padding - new padding for top and bottom, ignored if smaller than 0public AT_CellContext setPaddingTopBottom(int paddingTop, int paddingBottom)
Sets top and bottom padding (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_CellContext setPaddingTopChar(Character paddingTopChar)
Sets the top padding character.
paddingTopChar - new padding character, ignored if nullpublic void setTargetTranslator(TargetTranslator targetTranslator)
Sets the target translator. It will also remove any other translator set. Nothing will happen if the argument is null.
targetTranslator - translatorpublic AT_CellContext setTextAlignment(TextAlignment textAlignment)
Sets the text alignment.
textAlignment - new text alignmentNullPointerException - if the argument was null{@link - NullPointerException} if the argument was nullCopyright © 2014–2017. All rights reserved.