Class LocaleConverter
java.lang.Object
org.primefaces.extensions.converter.LocaleConverter
- All Implemented Interfaces:
Serializable
,javax.faces.convert.Converter<Object>
public class LocaleConverter
extends Object
implements javax.faces.convert.Converter<Object>, Serializable
Converter
which converts a string to a Locale
an vice-versa.- Since:
- 0.2
- Version:
- $Revision$
- Author:
- Thomas Andraschko / last modified by $Author$
- See Also:
-
Field Summary
Fields inherited from interface javax.faces.convert.Converter
DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsObject
(javax.faces.context.FacesContext fc, javax.faces.component.UIComponent component, String value) getAsString
(javax.faces.context.FacesContext fc, javax.faces.component.UIComponent component, Object value) static Locale
getLocaleObject
(String locale, char seperator) static String
getLocaleString
(Locale locale, char seperator) char
void
setSeparator
(char separator)
-
Constructor Details
-
LocaleConverter
public LocaleConverter()
-
-
Method Details
-
getAsObject
public Object getAsObject(javax.faces.context.FacesContext fc, javax.faces.component.UIComponent component, String value) - Specified by:
getAsObject
in interfacejavax.faces.convert.Converter<Object>
-
getAsString
public String getAsString(javax.faces.context.FacesContext fc, javax.faces.component.UIComponent component, Object value) - Specified by:
getAsString
in interfacejavax.faces.convert.Converter<Object>
-
getLocaleObject
-
getLocaleString
-
getSeparator
public char getSeparator() -
setSeparator
public void setSeparator(char separator)
-