|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.text.Format
java.text.DateFormat
com.inet.report.chart.format.PatternDateTimeFormat
public class PatternDateTimeFormat
This is a date time format defined by a pattern.
For more information on date and time patterns see
http://java.sun.com/docs/books/tutorial/i18n/format/simpleDateFormat.html
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PATTERN
The default pattern with date and time parts. |
| Constructor Summary | |
|---|---|
PatternDateTimeFormat()
Creates a new instance of format. |
|
| Method Summary | |
|---|---|
PatternDateTimeFormat |
clone()
Overrides Cloneable |
java.lang.StringBuffer |
format(java.util.Date date,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition fieldPosition)
|
java.lang.String |
getPattern()
Returns the format pattern. |
java.util.Date |
parse(java.lang.String source,
java.text.ParsePosition pos)
|
void |
readProperties(org.w3c.dom.Element element)
Reads the XML properties of a chart format. |
void |
saveProperties(java.lang.StringBuffer buffer,
int depth)
Writes the format properties to output. |
void |
setFormatingProperties(com.inet.report.chart.format.FormatingProperties properties)
Sets the location specific formating properties, e.g. locale, time zone, first day of week. |
void |
setLocale(java.util.Locale locale)
Sets the locale of chart. |
void |
setPattern(java.lang.String pattern)
Sets the format pattern. |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_PATTERN
| Constructor Detail |
|---|
public PatternDateTimeFormat()
| Method Detail |
|---|
public java.lang.String getPattern()
setPattern(String)public void setPattern(java.lang.String pattern)
pattern - the pattern (null not permitted)getPattern()public void setLocale(java.util.Locale locale)
setLocale in interface ChartFormatlocale - the locale (null not permitted)public void setFormatingProperties(com.inet.report.chart.format.FormatingProperties properties)
setFormatingProperties in interface ChartFormatproperties - the properties object (null not permitted)
public java.lang.StringBuffer format(java.util.Date date,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition fieldPosition)
format in class java.text.DateFormat
public java.util.Date parse(java.lang.String source,
java.text.ParsePosition pos)
parse in class java.text.DateFormat
public void saveProperties(java.lang.StringBuffer buffer,
int depth)
saveProperties in interface ChartFormatbuffer - the outputdepth - the depth of XML indentpublic void readProperties(org.w3c.dom.Element element)
readProperties in interface ChartFormatelement - DOM elementChartFormat.saveProperties(StringBuffer, int)public PatternDateTimeFormat clone()
clone in interface ChartFormatclone in class java.text.DateFormat
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||