|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.convert.DateTimeConverter
@JSFConverter(name="f:convertDateTime", bodyContent="empty", tagClass="org.apache.myfaces.taglib.core.ConvertDateTimeTag") @JSFJspProperty(name="binding", returnType="javax.faces.convert.DateTimeConverter", longDesc="A ValueExpression that evaluates to a 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 java.lang.String |
CONVERTER_ID
|
static java.lang.String |
DATE_ID
|
static java.lang.String |
DATETIME_ID
|
static java.lang.String |
STRING_ID
|
static java.lang.String |
TIME_ID
|
Constructor Summary | |
---|---|
DateTimeConverter()
|
Method Summary | |
---|---|
void |
clearInitialState()
|
java.lang.Object |
getAsObject(FacesContext facesContext,
UIComponent uiComponent,
java.lang.String value)
|
java.lang.String |
getAsString(FacesContext facesContext,
UIComponent uiComponent,
java.lang.Object value)
|
java.lang.String |
getDateStyle()
The style of the date. |
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. |
boolean |
initialStateMarked()
|
boolean |
isTransient()
|
void |
markInitialState()
|
void |
restoreState(FacesContext facesContext,
java.lang.Object state)
|
java.lang.Object |
saveState(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 |
setTransient(boolean aTransient)
|
void |
setType(java.lang.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 java.lang.String CONVERTER_ID
public static final java.lang.String DATE_ID
public static final java.lang.String DATETIME_ID
public static final java.lang.String STRING_ID
public static final java.lang.String TIME_ID
Constructor Detail |
---|
public DateTimeConverter()
Method Detail |
---|
public java.lang.Object getAsObject(FacesContext facesContext, UIComponent uiComponent, java.lang.String value)
getAsObject
in interface Converter
public java.lang.String getAsString(FacesContext facesContext, UIComponent uiComponent, java.lang.Object value)
getAsString
in interface Converter
public void restoreState(FacesContext facesContext, java.lang.Object state)
restoreState
in interface StateHolder
public java.lang.Object saveState(FacesContext facesContext)
saveState
in interface StateHolder
@JSFProperty public java.lang.String getDateStyle()
public void setDateStyle(java.lang.String dateStyle)
@JSFProperty public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
@JSFProperty public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
@JSFProperty public java.lang.String getTimeStyle()
public void setTimeStyle(java.lang.String timeStyle)
@JSFProperty public java.util.TimeZone getTimeZone()
public void setTimeZone(java.util.TimeZone timeZone)
public boolean isTransient()
isTransient
in interface StateHolder
public void setTransient(boolean aTransient)
setTransient
in interface StateHolder
@JSFProperty public java.lang.String getType()
public void setType(java.lang.String type)
public void clearInitialState()
clearInitialState
in interface PartialStateHolder
public boolean initialStateMarked()
initialStateMarked
in interface PartialStateHolder
public void markInitialState()
markInitialState
in interface PartialStateHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |