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 - chemit@codelutin.com
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protectedMaskFormatterFromConverter(Class<O> type, String pattern, org.apache.commons.beanutils.Converter converter) -
Method Summary
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, setValueContainsLiteralCharactersMethods inherited from class javax.swing.text.DefaultFormatter
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClassMethods inherited from class javax.swing.JFormattedTextField.AbstractFormatter
getActions, getFormattedTextField, invalidEdit, setEditValid, uninstall
-
Constructor Details
-
MaskFormatterFromConverter
protected MaskFormatterFromConverter(Class<O> type, String pattern, org.apache.commons.beanutils.Converter converter) throws ParseException- Throws:
ParseException
-
-
Method Details
-
newFormatter
public static <O> MaskFormatterFromConverter<O> newFormatter(Class<O> type, String pattern, org.apache.commons.beanutils.Converter converter) throws ParseException- Throws:
ParseException
-
valueToString
- Overrides:
valueToStringin classMaskFormatter- Throws:
ParseException
-
stringToValue
- Overrides:
stringToValuein classMaskFormatter- Throws:
ParseException
-
getConverter
protected org.apache.commons.beanutils.Converter getConverter() -
getType
-