public class FormattedDateTimeConverter extends BaseConverter implements StateHolder
Modifier and Type | Field and Description |
---|---|
static String |
CONVERTER_ID |
protected static DateFormat |
dateFormatDefault |
static String |
DEFAULT_DATE_PATTERN |
static String |
DEFAULT_TIME_PATTERN |
protected Boolean |
m_bDisplayTime |
protected Integer |
m_iTimePrecision |
protected String |
m_sPattern |
protected String |
m_sPatternTime |
protected String |
m_sTimeZone |
protected ValueExpression |
m_vTimeZoneBinding |
BAD_PARAMETER_LONG_ID, BAD_PARAMETER_SHORT_ID, BAD_STRING_LONG_ID, BAD_STRING_SHORT_ID, BAD_TYPE_LONG_ID, BAD_TYPE_SHORT_ID, m_bshowCAFErrorMsg, m_clientLocale, m_CustomMessage
DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
Constructor and Description |
---|
FormattedDateTimeConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
getAsObject(FacesContext context,
UIComponent component,
String value) |
String |
getAsString(FacesContext context,
UIComponent component,
Object value) |
boolean |
getDisplayTime() |
ConverterException |
getParseInputMsg() |
String |
getPattern() |
String |
getPatternTime() |
Integer |
getTimePercision() |
String |
getTimeZone() |
ValueExpression |
getTimeZoneBinding() |
boolean |
isTransient() |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setDisplayTime(boolean bValue) |
void |
setPattern(String sPattern) |
void |
setPatternTime(String sPattern) |
void |
setTimePrecision(Integer iValue) |
void |
setTimePrecision(String sValue)
As defined in g11nutils class DateFormatUtil
|
void |
setTimeZone(String sValue) |
void |
setTimeZoneBinding(ValueExpression timeZoneBinding) |
void |
setTransient(boolean transientFlag) |
protected DateFormat |
setupDateTimeFormater(FacesContext context) |
getBadCommonInputMsg, getBadInputMsg, getBadInputMsg, getBadInputStringTypeMsg, getBadInputTypeMsg, getClientLocale, getClientTimeZone, getCustomErrorMsg, getRegion, getshowCAFErrorMsg, isBlankValue, isStringObj, isValue, setCustomErrorMsg, setRegion, setshowCAFErrorMsg, validateFromObject, validateFromString
public static final String CONVERTER_ID
public static final String DEFAULT_DATE_PATTERN
public static final String DEFAULT_TIME_PATTERN
protected static final DateFormat dateFormatDefault
protected String m_sPattern
protected String m_sPatternTime
protected String m_sTimeZone
protected ValueExpression m_vTimeZoneBinding
protected Integer m_iTimePrecision
protected Boolean m_bDisplayTime
public Object getAsObject(FacesContext context, UIComponent component, String value)
getAsObject
in interface Converter
public String getAsString(FacesContext context, UIComponent component, Object value)
getAsString
in interface Converter
protected DateFormat setupDateTimeFormater(FacesContext context)
public ConverterException getParseInputMsg()
public String getPattern()
public void setPattern(String sPattern)
public String getPatternTime()
public void setPatternTime(String sPattern)
public boolean getDisplayTime()
public void setDisplayTime(boolean bValue)
public String getTimeZone()
public void setTimeZone(String sValue)
public ValueExpression getTimeZoneBinding()
public void setTimeZoneBinding(ValueExpression timeZoneBinding)
public Integer getTimePercision()
public void setTimePrecision(String sValue)
sValue
- WITH_MINUTES:0,WITH_SECONDS:1,WITH_MILLIS:2public void setTimePrecision(Integer iValue)
public Object saveState(FacesContext context)
saveState
in interface StateHolder
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
public boolean isTransient()
isTransient
in interface StateHolder
public void setTransient(boolean transientFlag)
setTransient
in interface StateHolder