|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.Format
java.text.NumberFormat
com.mmm.cms.util.IntegerFormat
public class IntegerFormat
This provides a concrete wrapper around the number format in order to allow output of decimal values. Besides limitting the decimal methods, it provides not additional functionality. Decimal values are not supported.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.text.NumberFormat |
|---|
java.text.NumberFormat.Field |
| Field Summary |
|---|
| Fields inherited from class java.text.NumberFormat |
|---|
FRACTION_FIELD, INTEGER_FIELD |
| Constructor Summary | |
|---|---|
IntegerFormat()
Constructor which sets the fill character to the default of 1 space, i.e. |
|
IntegerFormat(char filler)
Constructor that sets the filler to the supplied character |
|
| Method Summary | |
|---|---|
java.lang.StringBuffer |
format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Not supported for formatting double values |
java.lang.StringBuffer |
format(long number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats a long value to include the filler character if needed |
char |
getFillerChar()
Get the value of fillerChar |
java.lang.Number |
parse(java.lang.String source,
java.text.ParsePosition parsePosition)
Parses an integer based on the source string. |
void |
setCurrency(java.util.Currency currency)
Not supported |
void |
setFillerChar(char fillerChar)
Set the value of fillerChar |
void |
setMaximumFractionDigits(int newValue)
Not supported |
void |
setMinimumFractionDigits(int newValue)
Not supported |
| Methods inherited from class java.text.NumberFormat |
|---|
clone, equals, format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setGroupingUsed, setMaximumIntegerDigits, setMinimumIntegerDigits, setParseIntegerOnly |
| Methods inherited from class java.text.Format |
|---|
format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntegerFormat()
public IntegerFormat(char filler)
filler - | Method Detail |
|---|
public char getFillerChar()
public void setFillerChar(char fillerChar)
fillerChar - new value of fillerChar
public java.lang.StringBuffer format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
format in class java.text.NumberFormatnumber - toAppendTo - pos -
public java.lang.StringBuffer format(long number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
format in class java.text.NumberFormatnumber - toAppendTo - pos -
public java.lang.Number parse(java.lang.String source,
java.text.ParsePosition parsePosition)
parse in class java.text.NumberFormatsource - parsePosition -
java.lang.NumberFormatExceptionpublic void setCurrency(java.util.Currency currency)
setCurrency in class java.text.NumberFormatcurrency - public void setMaximumFractionDigits(int newValue)
setMaximumFractionDigits in class java.text.NumberFormatnewValue - public void setMinimumFractionDigits(int newValue)
setMinimumFractionDigits in class java.text.NumberFormatnewValue -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||