|
|||||||||
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 DateTimeConverter
Simple 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 String |
CONVERTER_ID
|
Fields inherited from class javax.faces.convert.DateTimeConverter |
---|
DATE_ID, DATETIME_ID, STRING_ID, TIME_ID |
Constructor Summary | |
---|---|
DateTimeConverter()
|
Method Summary | |
---|---|
Object |
getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
String value)
|
String |
getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
Object value)
|
String |
getDateStyle()
The style of the date. |
protected javax.faces.context.FacesContext |
getFacesContext()
|
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. |
javax.el.ValueExpression |
getValueExpression(String name)
|
void |
restoreState(javax.faces.context.FacesContext facesContext,
Object state)
|
Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setDateStyle(String dateStyle)
|
void |
setLocale(Locale locale)
|
void |
setPattern(String pattern)
|
void |
setTimeStyle(String timeStyle)
|
void |
setTimeZone(TimeZone timeZone)
|
void |
setType(String type)
|
void |
setValueExpression(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 String CONVERTER_ID
Constructor Detail |
---|
public DateTimeConverter()
Method Detail |
---|
public Object getAsObject(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, String value)
getAsObject
in interface javax.faces.convert.Converter
getAsObject
in class javax.faces.convert.DateTimeConverter
public String getAsString(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, Object value)
getAsString
in interface javax.faces.convert.Converter
getAsString
in class javax.faces.convert.DateTimeConverter
public void restoreState(javax.faces.context.FacesContext facesContext, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.convert.DateTimeConverter
public Object saveState(javax.faces.context.FacesContext facesContext)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.convert.DateTimeConverter
public javax.el.ValueExpression getValueExpression(String name)
public void setValueExpression(String name, javax.el.ValueExpression binding)
protected javax.faces.context.FacesContext getFacesContext()
@JSFProperty(inheritedTag=false) public String getDateStyle()
getDateStyle
in class javax.faces.convert.DateTimeConverter
public void setDateStyle(String dateStyle)
setDateStyle
in class javax.faces.convert.DateTimeConverter
@JSFProperty(inheritedTag=false, deferredValueType="java.lang.Object") public Locale getLocale()
getLocale
in class javax.faces.convert.DateTimeConverter
public void setLocale(Locale locale)
setLocale
in class javax.faces.convert.DateTimeConverter
@JSFProperty(inheritedTag=false) public String getPattern()
getPattern
in class javax.faces.convert.DateTimeConverter
public void setPattern(String pattern)
setPattern
in class javax.faces.convert.DateTimeConverter
@JSFProperty(inheritedTag=false) public String getTimeStyle()
getTimeStyle
in class javax.faces.convert.DateTimeConverter
public void setTimeStyle(String timeStyle)
setTimeStyle
in class javax.faces.convert.DateTimeConverter
@JSFProperty(inheritedTag=false, deferredValueType="java.lang.Object") public TimeZone getTimeZone()
getTimeZone
in class javax.faces.convert.DateTimeConverter
public void setTimeZone(TimeZone timeZone)
setTimeZone
in class javax.faces.convert.DateTimeConverter
@JSFProperty(inheritedTag=false) public String getType()
getType
in class javax.faces.convert.DateTimeConverter
public void setType(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 |