Package com.tagtraum.beatunes.songinfo
Class IntegerFormatter
- java.lang.Object
-
- javax.swing.JFormattedTextField.AbstractFormatter
-
- com.tagtraum.beatunes.songinfo.IntegerFormatter
-
- All Implemented Interfaces:
Serializable
public class IntegerFormatter extends JFormattedTextField.AbstractFormatter
IntegerFormatter- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static JFormattedTextField.AbstractFormatter
INSTANCE
-
Constructor Summary
Constructors Constructor Description IntegerFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
stringToValue(String text)
String
valueToString(Object value)
-
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
clone, getActions, getDocumentFilter, getFormattedTextField, getNavigationFilter, install, invalidEdit, setEditValid, uninstall
-
-
-
-
Field Detail
-
INSTANCE
public static final JFormattedTextField.AbstractFormatter INSTANCE
-
-
Method Detail
-
stringToValue
public Object stringToValue(String text) throws ParseException
- Specified by:
stringToValue
in classJFormattedTextField.AbstractFormatter
- Throws:
ParseException
-
valueToString
public String valueToString(Object value)
- Specified by:
valueToString
in classJFormattedTextField.AbstractFormatter
-
-