| java.lang.Object com.sun.rave.faces.converter.CalendarConverter
All known Subclasses: com.sun.jsfcl.convert.CalendarConverter,
CalendarConverter | public class CalendarConverter implements Converter,StateHolder(Code) | | Converter implementation for java.util.Calendar
values. Delegates detailed processing, and all property settings, to an
internal instance of dateTimeConverter that is used to perform
the actual conversion processing.
|
CONVERTER_ID | final public static String CONVERTER_ID(Code) | | The standard converter id for this converter.
|
getDateStyle | public String getDateStyle()(Code) | | Return the style to be used to format or parse dates. If not set,
the default value, default, is returned.
|
getLocale | public Locale getLocale()(Code) | | Return the Locale to be used when parsing or formatting
dates and times. If not explicitly set, the Locale stored
in the
javax.faces.component.UIViewRoot for the current
request is returned.
|
getPattern | public String getPattern()(Code) | | Return the format pattern to be used when formatting and
parsing dates and times.
|
getTimeStyle | public String getTimeStyle()(Code) | | Return the style to be used to format or parse times. If not set,
the default value, default , is returned.
|
getTimeZone | public TimeZone getTimeZone()(Code) | | Return the TimeZone used to interpret a time value.
If not explicitly set, the default time zone of GMT
returned.
|
getType | public String getType()(Code) | | Return the type of value to be formatted or parsed.
If not explicitly set, the default type, date
is returned.
|
isTransient | public boolean isTransient()(Code) | | |
restoreState | public void restoreState(FacesContext context, Object state)(Code) | | |
saveState | public Object saveState(FacesContext context)(Code) | | |
setDateStyle | public void setDateStyle(String dateStyle)(Code) | | Set the style to be used to format or parse dates. Valid values
are default , short , medium ,
long , and full .
An invalid value will cause a
ConverterException when
getAsObject() or getAsString() is called.
Parameters: dateStyle - The new style code |
setLocale | public void setLocale(Locale locale)(Code) | | Set the Locale to be used when parsing or formatting
dates and times. If set to null , the Locale
stored in the
javax.faces.component.UIViewRoot for the current
request will be utilized.
Parameters: locale - The new Locale (or null ) |
setPattern | public void setPattern(String pattern)(Code) | | Set the format pattern to be used when formatting and parsing
dates and times. Valid values are those supported by
java.text.SimpleDateFormat .
An invalid value will cause a
ConverterException when
getAsObject() or getAsString() is called.
Parameters: pattern - The new format pattern |
setTimeStyle | public void setTimeStyle(String timeStyle)(Code) | | Set the style to be used to format or parse times. Valid values
are default , short , medium ,
long , and full .
An invalid value will cause a
ConverterException when
getAsObject() or getAsString() is called.
Parameters: timeStyle - The new style code |
setTimeZone | public void setTimeZone(TimeZone timeZone)(Code) | | Set the TimeZone used to interpret a time value.
Parameters: timeZone - The new time zone |
setTransient | public void setTransient(boolean transientFlag)(Code) | | |
setType | public void setType(String type)(Code) | | Set the type of value to be formatted or parsed.
Valid values are both , date , or
time .
An invalid value will cause a
ConverterException when
getAsObject() or getAsString() is called.
Parameters: type - The new date style |
|
|