|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.text.Format
java.text.NumberFormat
java.text.DecimalFormat
ikayaki.gui.NullableDecimalFormat
public class NullableDecimalFormat
Decimal format that accepts an empty string. An empty string equals null.
If this class is used, it is not possible to use NumberFormatter's setMinimum and setMaximum values, because it will create a NullPointerException.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.text.NumberFormat |
---|
NumberFormat.Field |
Field Summary |
---|
Fields inherited from class java.text.NumberFormat |
---|
FRACTION_FIELD, INTEGER_FIELD |
Constructor Summary | |
---|---|
NullableDecimalFormat()
|
Method Summary | |
---|---|
Object |
parseObject(String source)
|
Methods inherited from class java.text.NumberFormat |
---|
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setGroupingUsed, setParseIntegerOnly |
Methods inherited from class java.text.Format |
---|
format |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NullableDecimalFormat()
Method Detail |
---|
public Object parseObject(String source) throws ParseException
parseObject
in class Format
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |