|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.convert.DateTimeConverter
public class DateTimeConverter
This tag associates a date time converter with the nearest parent UIComponent. Unless otherwise specified, all attributes accept static values or EL expressions. see Javadoc of JSF Specification
| Field Summary | |
|---|---|
static String |
CONVERTER_ID
|
| Constructor Summary | |
|---|---|
DateTimeConverter()
|
|
| Method Summary | |
|---|---|
Object |
getAsObject(FacesContext context,
UIComponent component,
String value)
|
String |
getAsString(FacesContext context,
UIComponent component,
Object value)
|
String |
getDateStyle()
The style of the date. |
Locale |
getLocale()
The name of the locale to be used, instead of the default. |
String |
getPattern()
A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat. |
String |
getTimeStyle()
The style of the time. |
TimeZone |
getTimeZone()
The time zone to use instead of GMT (the default timezone). |
String |
getType()
Specifies whether the date, time, or both should be parsed/formatted. |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONVERTER_ID
| Constructor Detail |
|---|
public DateTimeConverter()
| Method Detail |
|---|
public Object getAsObject(FacesContext context,
UIComponent component,
String value)
throws ConverterException
getAsObject in interface ConverterConverterException
public String getAsString(FacesContext context,
UIComponent component,
Object value)
throws ConverterException
getAsString in interface ConverterConverterException
public void restoreState(FacesContext facesContext,
Object state)
restoreState in interface StateHolderpublic Object saveState(FacesContext facesContext)
saveState in interface StateHolderpublic 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 StateHolderpublic void setTransient(boolean aTransient)
setTransient in interface StateHolderpublic String getType()
public void setType(String type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||