|
ESPRESSCHART 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectquadbase.util.LocaleDateTimeFormat
public class LocaleDateTimeFormat
This class formats and parses date and/or time values in a locale-specific way. It cannot directly extand java.text.DateFormat because java.text.DateFormat is an abstract class. All formats implement quadbase.util.IFormat. Please use quadbase.util.IDataPointSet.setLabelFormat(int colIndex, IFormat format) to set the label format of a data column.
DateTimeFormat,
NumericFormat,
LocaleNumericFormat,
LogicalFormat,
IFormat| Field Summary | |
|---|---|
static int |
DATE
|
static int |
DATETIME
|
static int |
TIME
|
| Fields inherited from interface quadbase.util.IFormat |
|---|
LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC |
| Method Summary | |
|---|---|
java.lang.String |
format(java.lang.Object obj)
Define quadbase.util.IFormat. |
static LocaleDateTimeFormat |
getDateInstance()
Create an instance of date format for the default locale and style. |
static LocaleDateTimeFormat |
getDateInstance(int style)
Create an instance of date format for the default locale and the specified style. |
static LocaleDateTimeFormat |
getDateInstance(int style,
java.util.Locale locale)
Create an instance of date format for the specified locale and style. |
static LocaleDateTimeFormat |
getDateInstance(java.util.Locale locale)
Create an instance of date format for the specified locale. |
int |
getDateStyle()
Get the date style. |
static LocaleDateTimeFormat |
getDateTimeInstance()
Create an instance of timestamp format for the default locale and styles. |
static LocaleDateTimeFormat |
getDateTimeInstance(int dateStyle,
int timeStyle)
Create an instance of timestamp format for the specified styles. |
static LocaleDateTimeFormat |
getDateTimeInstance(int dateStyle,
int timeStyle,
java.util.Locale locale)
Create an instance of timestamp format for the specified styles and locale. |
static LocaleDateTimeFormat |
getDateTimeInstance(java.util.Locale locale)
Create an instance of timestamp format for the specified locale. |
int |
getFormatType()
Define quadbase.util.IFormat. |
int |
getInstanceType()
Get the type of instance. |
static LocaleDateTimeFormat |
getTimeInstance()
Create an instance of time format for the default locale and style. |
static LocaleDateTimeFormat |
getTimeInstance(int style)
Create an instance of time format for the specifed locale. |
static LocaleDateTimeFormat |
getTimeInstance(int style,
java.util.Locale locale)
Create an instance of time format for the specifed locale and style. |
static LocaleDateTimeFormat |
getTimeInstance(java.util.Locale locale)
Create an instance of time format for the specifed locale. |
int |
getTimeStyle()
Get the time style. |
java.util.TimeZone |
getTimeZone()
Gets the time zone |
void |
setLocale(java.util.Locale locale)
Sets the format locale |
void |
setTimeZone(java.util.TimeZone zone)
Sets the time zone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int DATE
public static int TIME
public static int DATETIME
| Method Detail |
|---|
public void setLocale(java.util.Locale locale)
locale - The locale to become this format locale.public void setTimeZone(java.util.TimeZone zone)
zone - the given new time zonepublic java.util.TimeZone getTimeZone()
public int getFormatType()
getFormatType in interface IFormatpublic java.lang.String format(java.lang.Object obj)
format in interface IFormatobj - The target object
public static LocaleDateTimeFormat getDateInstance()
public static LocaleDateTimeFormat getDateInstance(int style)
style - The specifed style
for all available stylespublic static LocaleDateTimeFormat getDateInstance(java.util.Locale locale)
locale - The specifed locale
public static LocaleDateTimeFormat getDateInstance(int style,
java.util.Locale locale)
style - The specifed stylelocale - The specifed locale
for all available stylespublic static LocaleDateTimeFormat getDateTimeInstance()
public static LocaleDateTimeFormat getDateTimeInstance(java.util.Locale locale)
locale - The specifed locale
public static LocaleDateTimeFormat getDateTimeInstance(int dateStyle,
int timeStyle)
dateStyle - The specifed date styletimeStyle - The specified time style
for all available styles
public static LocaleDateTimeFormat getDateTimeInstance(int dateStyle,
int timeStyle,
java.util.Locale locale)
dateStyle - The specifed date styletimeStyle - The specified time stylelocale - The specifed locale
for all available stylespublic static LocaleDateTimeFormat getTimeInstance()
public static LocaleDateTimeFormat getTimeInstance(int style)
style - The specifed style
for all available stylespublic static LocaleDateTimeFormat getTimeInstance(java.util.Locale locale)
locale - The specifed locale
for all available styles
public static LocaleDateTimeFormat getTimeInstance(int style,
java.util.Locale locale)
style - The specifed stylelocale - The specifed locale
for all available stylespublic int getInstanceType()
public int getDateStyle()
for all available stylespublic int getTimeStyle()
for all available styles
|
ESPRESSCHART 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||