|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.convert.DateTimeConverter
org.apache.myfaces.commons.converter.DateTimeConverter
@JSFConverter(name="mcc:convertDateTime",
tagClass="org.apache.myfaces.commons.converter.ConvertDateTimeTag",
tagSuperclass="org.apache.myfaces.commons.converter.ConverterTag",
tagHandler="org.apache.myfaces.commons.converter.ConvertDateTimeTagHandler",
serialuidtag="1542071733367150635L",
evaluateELOnExecution=true)
public class DateTimeConverterSimple convert that overrides the spec DateTimeConverter and uses TimeZone.getDefault() as the base timezone, rather than GMT. Convert date time using normal system timezone like it should User: treeder Date: Oct 28, 2005 Time: 7:19:01 PM
| Field Summary | |
|---|---|
static java.lang.String |
CONVERTER_ID
|
| Fields inherited from class javax.faces.convert.DateTimeConverter |
|---|
DATE_ID, DATETIME_ID, STRING_ID, TIME_ID |
| Constructor Summary | |
|---|---|
DateTimeConverter()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
java.lang.String value)
|
java.lang.String |
getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
java.lang.Object value)
|
java.lang.String |
getDateStyle()
The style of the date. |
protected javax.faces.context.FacesContext |
getFacesContext()
|
java.util.Locale |
getLocale()
The name of the locale to be used, instead of the default. |
java.lang.String |
getPattern()
A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat. |
java.lang.String |
getTimeStyle()
The style of the time. |
java.util.TimeZone |
getTimeZone()
The time zone to use instead of GMT (the default timezone). |
java.lang.String |
getType()
Specifies whether the date, time, or both should be parsed/formatted. |
javax.el.ValueExpression |
getValueExpression(java.lang.String name)
|
void |
restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setDateStyle(java.lang.String dateStyle)
|
void |
setLocale(java.util.Locale locale)
|
void |
setPattern(java.lang.String pattern)
|
void |
setTimeStyle(java.lang.String timeStyle)
|
void |
setTimeZone(java.util.TimeZone timeZone)
|
void |
setType(java.lang.String type)
|
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
|
| Methods inherited from class javax.faces.convert.DateTimeConverter |
|---|
isTransient, setTransient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONVERTER_ID
| Constructor Detail |
|---|
public DateTimeConverter()
| Method Detail |
|---|
public java.lang.Object getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
java.lang.String value)
getAsObject in interface javax.faces.convert.ConvertergetAsObject in class javax.faces.convert.DateTimeConverter
public java.lang.String getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
java.lang.Object value)
getAsString in interface javax.faces.convert.ConvertergetAsString in class javax.faces.convert.DateTimeConverter
public void restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.convert.DateTimeConverterpublic java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.convert.DateTimeConverterpublic javax.el.ValueExpression getValueExpression(java.lang.String name)
public void setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
protected javax.faces.context.FacesContext getFacesContext()
@JSFProperty(inheritedTag=false) public java.lang.String getDateStyle()
getDateStyle in class javax.faces.convert.DateTimeConverterpublic void setDateStyle(java.lang.String dateStyle)
setDateStyle in class javax.faces.convert.DateTimeConverter
@JSFProperty(inheritedTag=false,
deferredValueType="java.lang.Object")
public java.util.Locale getLocale()
getLocale in class javax.faces.convert.DateTimeConverterpublic void setLocale(java.util.Locale locale)
setLocale in class javax.faces.convert.DateTimeConverter@JSFProperty(inheritedTag=false) public java.lang.String getPattern()
getPattern in class javax.faces.convert.DateTimeConverterpublic void setPattern(java.lang.String pattern)
setPattern in class javax.faces.convert.DateTimeConverter@JSFProperty(inheritedTag=false) public java.lang.String getTimeStyle()
getTimeStyle in class javax.faces.convert.DateTimeConverterpublic void setTimeStyle(java.lang.String timeStyle)
setTimeStyle in class javax.faces.convert.DateTimeConverter
@JSFProperty(inheritedTag=false,
deferredValueType="java.lang.Object")
public java.util.TimeZone getTimeZone()
getTimeZone in class javax.faces.convert.DateTimeConverterpublic void setTimeZone(java.util.TimeZone timeZone)
setTimeZone in class javax.faces.convert.DateTimeConverter@JSFProperty(inheritedTag=false) public java.lang.String getType()
getType in class javax.faces.convert.DateTimeConverterpublic void setType(java.lang.String type)
setType in class javax.faces.convert.DateTimeConverter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||