public final class ExtrasFormattingInfo
extends java.lang.Object
Constructor and Description |
---|
ExtrasFormattingInfo(boolean leftAlign,
boolean rightTruncate,
int minLength,
int maxLength)
Creates new instance.
|
ExtrasFormattingInfo(boolean leftAlign,
int minLength,
int maxLength)
Deprecated.
since 1.2.17
|
Modifier and Type | Method and Description |
---|---|
void |
format(int fieldStart,
java.lang.StringBuffer buffer)
Adjust the content of the buffer based on the specified lengths and alignment.
|
static ExtrasFormattingInfo |
getDefault()
Gets default instance.
|
int |
getMaxLength()
Get maximum length.
|
int |
getMinLength()
Get minimum length.
|
boolean |
isLeftAligned()
Determine if left aligned.
|
boolean |
isRightTruncated()
Determine if right truncated.
|
public ExtrasFormattingInfo(boolean leftAlign, int minLength, int maxLength)
leftAlign
- left align if true.minLength
- minimum length.maxLength
- maximum length.public ExtrasFormattingInfo(boolean leftAlign, boolean rightTruncate, int minLength, int maxLength)
leftAlign
- left align if true.rightTruncate
- right truncate if true.minLength
- minimum length.maxLength
- maximum length.public static ExtrasFormattingInfo getDefault()
public boolean isLeftAligned()
public boolean isRightTruncated()
public int getMinLength()
public int getMaxLength()
public void format(int fieldStart, java.lang.StringBuffer buffer)
fieldStart
- start of field in buffer.buffer
- buffer to be modified.Copyright © 2006-2019 OPS4J - Open Participation Software for Java. All Rights Reserved.