public class SimpleValueFormat extends ValueFormat
Format.Field
Constructor and Description |
---|
SimpleValueFormat(int maxElements)
Formats any scalar and array, by using the server side formatting
and limiting the elements of the array displayed to maxElements.
|
Modifier and Type | Method and Description |
---|---|
protected StringBuffer |
format(Array<?> array,
StringBuffer toAppendTo,
FieldPosition pos)
Formats an array.
|
protected StringBuffer |
format(Scalar scalar,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a scalar.
|
format, format, format, getNumberFormat, parseObject, setNumberFormat
clone, format, formatToCharacterIterator, parseObject
public SimpleValueFormat(int maxElements)
maxElements
- maximum number of array elements converted to stringprotected StringBuffer format(Scalar scalar, StringBuffer toAppendTo, FieldPosition pos)
ValueFormat
format
in class ValueFormat
scalar
- data object to formattoAppendTo
- output bufferpos
- the field positionprotected StringBuffer format(Array<?> array, StringBuffer toAppendTo, FieldPosition pos)
ValueFormat
format
in class ValueFormat
array
- data object to formattoAppendTo
- output bufferpos
- the field positionCopyright © 2012. All Rights Reserved.