public class LocaleDateTimeFormat extends java.lang.Object implements IFormat
DateTimeFormat,
NumericFormat,
LocaleNumericFormat,
LogicalFormat,
IFormat| Modifier and Type | Field and Description |
|---|---|
static int |
DATE
DATE format
|
static int |
DATETIME
DATE and TIME format
|
static int |
TIME
TIME format
|
BARCODE, IMAGEURL, LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC, STRING, TEXTURL| Modifier and Type | Method and Description |
|---|---|
static LocaleDateTimeFormat |
createFormat(java.lang.String text)
For internal use only.
|
java.lang.String |
format(java.lang.Object obj)
Define quadbase.reportdesigner.util.IFormat.
|
java.text.DateFormat |
getDateFormat()
For internal use only
|
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.reportdesigner.util.IFormat.
|
int |
getInstanceType()
Get the type of instance.
|
java.util.Locale |
getLocale() |
java.lang.String |
getTextFormat()
For internal use only.
|
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
|
public static int DATE
public static int TIME
public static int DATETIME
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)
public static LocaleDateTimeFormat getDateInstance()
public static LocaleDateTimeFormat getDateInstance(int style)
style - The specifed stylefor all available stylespublic static LocaleDateTimeFormat getDateInstance(java.util.Locale locale)
locale - The specifed localepublic static LocaleDateTimeFormat getDateInstance(int style, java.util.Locale locale)
style - The specifed stylelocale - The specifed localefor all available stylespublic static LocaleDateTimeFormat getDateTimeInstance()
public static LocaleDateTimeFormat getDateTimeInstance(java.util.Locale locale)
locale - The specifed localepublic static LocaleDateTimeFormat getDateTimeInstance(int dateStyle, int timeStyle)
dateStyle - The specifed date styletimeStyle - The specified time stylefor all available stylespublic static LocaleDateTimeFormat getDateTimeInstance(int dateStyle, int timeStyle, java.util.Locale locale)
dateStyle - The specifed date styletimeStyle - The specified time stylelocale - The specifed localefor all available stylespublic static LocaleDateTimeFormat getTimeInstance()
public static LocaleDateTimeFormat getTimeInstance(int style)
style - The specifed stylefor all available stylespublic static LocaleDateTimeFormat getTimeInstance(java.util.Locale locale)
locale - The specifed localefor all available stylespublic static LocaleDateTimeFormat getTimeInstance(int style, java.util.Locale locale)
style - The specifed stylelocale - The specifed localefor all available stylespublic int getInstanceType()
public int getDateStyle()
for all available stylespublic int getTimeStyle()
for all available stylespublic java.text.DateFormat getDateFormat()
public java.util.Locale getLocale()
public java.lang.String getTextFormat()
getTextFormat in interface IFormatpublic static LocaleDateTimeFormat createFormat(java.lang.String text) throws java.lang.Exception
java.lang.Exception