|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.JFormattedTextField.AbstractFormatter
javax.swing.text.DefaultFormatter
gausselim.RealFractionFormatter
public class RealFractionFormatter
Formatter for BigDecimals that can parse simple fractions (BigDecimal/BigDecimal).
Constructor Summary | |
---|---|
RealFractionFormatter(java.math.MathContext mc)
Create a formatter that parses BigDecimals. |
Method Summary | |
---|---|
java.lang.Object |
stringToValue(java.lang.String string)
Parse the specified string into a BigDecimal. |
java.lang.String |
valueToString(java.lang.Object value)
Format a BigDecimal. |
Methods inherited from class javax.swing.text.DefaultFormatter |
---|
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, install, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass |
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter |
---|
getActions, getFormattedTextField, invalidEdit, setEditValid, uninstall |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RealFractionFormatter(java.math.MathContext mc)
Method Detail |
---|
public java.lang.Object stringToValue(java.lang.String string) throws java.text.ParseException
stringToValue
in class javax.swing.text.DefaultFormatter
java.text.ParseException
public java.lang.String valueToString(java.lang.Object value) throws java.text.ParseException
valueToString
in class javax.swing.text.DefaultFormatter
java.text.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |