@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 extends Object implements Converter, PartialStateHolder
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 |
DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
Constructor and Description |
---|
DateTimeConverter() |
Modifier and Type | Method and Description |
---|---|
void |
clearInitialState() |
Object |
getAsObject(FacesContext facesContext,
UIComponent uiComponent,
String value) |
String |
getAsString(FacesContext facesContext,
UIComponent uiComponent,
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 |
initialStateMarked() |
boolean |
isTransient() |
void |
markInitialState() |
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
@JSFProperty public String getDateStyle()
public void setDateStyle(String dateStyle)
@JSFProperty public Locale getLocale()
public void setLocale(Locale locale)
@JSFProperty public String getPattern()
public void setPattern(String pattern)
@JSFProperty public String getTimeStyle()
public void setTimeStyle(String timeStyle)
@JSFProperty public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public boolean isTransient()
isTransient
in interface StateHolder
public void setTransient(boolean aTransient)
setTransient
in interface StateHolder
@JSFProperty public String getType()
public void setType(String type)
public void clearInitialState()
clearInitialState
in interface PartialStateHolder
public boolean initialStateMarked()
initialStateMarked
in interface PartialStateHolder
public void markInitialState()
markInitialState
in interface PartialStateHolder
Copyright © 2020 The Apache Software Foundation. All rights reserved.