public class DateTimeConverter extends Object implements Converter, StateHolder
Modifier and Type | Field and Description |
---|---|
static String |
CONVERTER_ID |
static String |
DATE_ID |
static String |
DATETIME_ID |
static String |
STRING_ID |
static String |
TIME_ID |
Constructor and Description |
---|
DateTimeConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
getAsObject(FacesContext facesContext,
UIComponent uiComponent,
String value) |
String |
getAsString(FacesContext facesContext,
UIComponent uiComponent,
Object value) |
String |
getDateStyle() |
Locale |
getLocale() |
String |
getPattern() |
String |
getTimeStyle() |
TimeZone |
getTimeZone() |
String |
getType() |
boolean |
isTransient() |
void |
restoreState(FacesContext facesContext,
Object state) |
Object |
saveState(FacesContext facesContext) |
void |
setDateStyle(String dateStyle) |
void |
setLocale(Locale locale) |
void |
setPattern(String pattern) |
void |
setTimeStyle(String timeStyle) |
void |
setTimeZone(TimeZone timeZone) |
void |
setTransient(boolean aTransient) |
void |
setType(String type) |
public static final String CONVERTER_ID
public static final String DATE_ID
public static final String DATETIME_ID
public static final String STRING_ID
public static final String TIME_ID
public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value)
getAsObject
in interface Converter
public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value)
getAsString
in interface Converter
public void restoreState(FacesContext facesContext, Object state)
restoreState
in interface StateHolder
public Object saveState(FacesContext facesContext)
saveState
in interface StateHolder
public String getDateStyle()
public void setDateStyle(String dateStyle)
public Locale getLocale()
public void setLocale(Locale locale)
public String getPattern()
public void setPattern(String pattern)
public String getTimeStyle()
public void setTimeStyle(String timeStyle)
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public boolean isTransient()
isTransient
in interface StateHolder
public void setTransient(boolean aTransient)
setTransient
in interface StateHolder
public String getType()
public void setType(String type)
Copyright © 2013 Apache Software Foundation. All Rights Reserved.