public final class FormattingInfo extends Object
| Constructor and Description |
|---|
FormattingInfo(boolean leftAlign,
int minLength,
int maxLength)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
format(int fieldStart,
StringBuffer buffer)
Adjust the content of the buffer based on the specified lengths and alignment.
|
static FormattingInfo |
getDefault()
Gets default instance.
|
int |
getMaxLength()
Get maximum length.
|
int |
getMinLength()
Get minimum length.
|
boolean |
isLeftAligned()
Determine if left aligned.
|
public FormattingInfo(boolean leftAlign,
int minLength,
int maxLength)
leftAlign - left align if true.minLength - minimum length.maxLength - maximum length.public static FormattingInfo getDefault()
public boolean isLeftAligned()
public int getMinLength()
public int getMaxLength()
public void format(int fieldStart,
StringBuffer buffer)
fieldStart - start of field in buffer.buffer - buffer to be modified.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.