public class TimeZoneConverter extends Object implements javax.faces.convert.Converter, Serializable
TimeZone
.Constructor and Description |
---|
TimeZoneConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
String stringTimeZone)
Converts the supplied stringTimeZone to an object of type
TimeZone . |
String |
getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
Object timeZone)
Converts the supplied timeZone to a String.
|
public Object getAsObject(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, String stringTimeZone)
TimeZone
.getAsObject
in interface javax.faces.convert.Converter
facesContext
- Faces Context.component
- The UI component that stores the time zone.stringTimeZone
- The TimeZone in String format to convert to a TimeZone.TimeZone
.
public String getAsString(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, Object timeZone)
getAsString
in interface javax.faces.convert.Converter
facesContext
- Faces Context.component
- The UI component that stores the time zone.timeZone
- The time zone to convert to a String.TimeZone
.Copyright © 2008–2018. All rights reserved.