Package org.esa.snap.ui
Class DecimalFormatter
- java.lang.Object
- 
- javax.swing.JFormattedTextField.AbstractFormatter
- 
- org.esa.snap.ui.DecimalFormatter
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class DecimalFormatter extends JFormattedTextField.AbstractFormatter A formatter to be used for decimal number in aJFormattedTextField
- 
- 
Constructor SummaryConstructors Constructor Description DecimalFormatter(String pattern)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectstringToValue(String text)StringvalueToString(Object value)- 
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatterclone, getActions, getDocumentFilter, getFormattedTextField, getNavigationFilter, install, invalidEdit, setEditValid, uninstall
 
- 
 
- 
- 
- 
Constructor Detail- 
DecimalFormatterpublic DecimalFormatter(String pattern) 
 
- 
 - 
Method Detail- 
stringToValuepublic Object stringToValue(String text) throws ParseException - Specified by:
- stringToValuein class- JFormattedTextField.AbstractFormatter
- Throws:
- ParseException
 
 - 
valueToStringpublic String valueToString(Object value) throws ParseException - Specified by:
- valueToStringin class- JFormattedTextField.AbstractFormatter
- Throws:
- ParseException
 
 
- 
 
-