Package org.nuiton.jaxx.widgets.gis
Class MaskFormatterFromConverter<O>
- java.lang.Object
-
- javax.swing.JFormattedTextField.AbstractFormatter
-
- javax.swing.text.DefaultFormatter
-
- javax.swing.text.MaskFormatter
-
- org.nuiton.jaxx.widgets.gis.MaskFormatterFromConverter<O>
-
- All Implemented Interfaces:
Serializable,Cloneable
public class MaskFormatterFromConverter<O> extends MaskFormatter
Created on 11/25/13.- Since:
- 2.12
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMaskFormatterFromConverter(Class<O> type, String pattern, org.apache.commons.beanutils.Converter converter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.beanutils.ConvertergetConverter()protected Class<O>getType()static <O> MaskFormatterFromConverter<O>newFormatter(Class<O> type, String pattern, org.apache.commons.beanutils.Converter converter)ObjectstringToValue(String value)StringvalueToString(Object value)-
Methods inherited from class javax.swing.text.MaskFormatter
getInvalidCharacters, getMask, getPlaceholder, getPlaceholderCharacter, getValidCharacters, getValueContainsLiteralCharacters, install, setInvalidCharacters, setMask, setPlaceholder, setPlaceholderCharacter, setValidCharacters, setValueContainsLiteralCharacters
-
Methods inherited from class javax.swing.text.DefaultFormatter
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass
-
Methods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
getActions, getFormattedTextField, invalidEdit, setEditValid, uninstall
-
-
-
-
Constructor Detail
-
MaskFormatterFromConverter
protected MaskFormatterFromConverter(Class<O> type, String pattern, org.apache.commons.beanutils.Converter converter) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
newFormatter
public static <O> MaskFormatterFromConverter<O> newFormatter(Class<O> type, String pattern, org.apache.commons.beanutils.Converter converter) throws ParseException
- Throws:
ParseException
-
valueToString
public String valueToString(Object value)
- Overrides:
valueToStringin classMaskFormatter
-
stringToValue
public Object stringToValue(String value)
- Overrides:
stringToValuein classMaskFormatter
-
getConverter
protected org.apache.commons.beanutils.Converter getConverter()
-
-