|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<DateDisplayFormat>
com.smartgwt.client.types.DateDisplayFormat
public enum DateDisplayFormat
Valid display formats for dates. These strings are the names of formatters which can be passed to
Date.setNormalDisplayFormat() or Date.setShortDisplayFormat() and will be subsequently used as
default long or short formatters for date objects by Smart GWT components.
Default set of valid display formats is
as follows:
| Enum Constant Summary | |
|---|---|
TODATESTAMP
Date in the format <YYYYMMDD>T<HHMMSS>Z Example: 20051104T111001Z Note: In addition to these standard formats, custom formatting can be set by passing a function directly to Date.setNormalDisplayFormat et al. |
|
TOEUROPEANSHORTDATE
Short date in format DD/MM/YYYY. Example: 4/11/2005 |
|
TOEUROPEANSHORTDATETIME
Short date with time in format DD/MM/YYYY HH:MM Example: 4/11/2005 11:03 |
|
TOJAPANSHORTDATE
Short date in format YYYY/MM/DD. Example: 2005/11/4 |
|
TOJAPANSHORTDATETIME
Short date with time in format YYYY/MM/DD HH:MM Example: 2005/11/4 11:03 |
|
TOLOCALESTRING
Default native browser 'toLocaleString()' implementation. |
|
TOSERIALIZEABLEDATE
Date in the format YYYY-MM-DD HH:MM:SS Example: 2005-11-04 11:09:15 |
|
TOSTRING
Default native browser 'toString()' implementation. |
|
TOUSSHORTDATE
Short date in format MM/DD/YYYY. Example: 11/4/2005 |
|
TOUSSHORTDATETIME
Short date with time in format MM/DD/YYYY HH:MM Example: 11/4/2005 11:03 |
|
| Method Summary | |
|---|---|
java.lang.String |
getValue()
|
static DateDisplayFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DateDisplayFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DateDisplayFormat TOSTRING
Fri Nov 04 2005
11:03:00 GMT-0800 (Pacific Standard Time)
public static final DateDisplayFormat TOLOCALESTRING
Friday, November
04, 2005 11:03:00 AM
public static final DateDisplayFormat TOUSSHORTDATE
11/4/2005
public static final DateDisplayFormat TOUSSHORTDATETIME
11/4/2005 11:03
public static final DateDisplayFormat TOEUROPEANSHORTDATE
4/11/2005
public static final DateDisplayFormat TOEUROPEANSHORTDATETIME
4/11/2005 11:03
public static final DateDisplayFormat TOJAPANSHORTDATE
2005/11/4
public static final DateDisplayFormat TOJAPANSHORTDATETIME
2005/11/4 11:03
public static final DateDisplayFormat TOSERIALIZEABLEDATE
2005-11-04 11:09:15
public static final DateDisplayFormat TODATESTAMP
20051104T111001Z
| Method Detail |
|---|
public static DateDisplayFormat[] values()
for (DateDisplayFormat c : DateDisplayFormat.values()) System.out.println(c);
public static DateDisplayFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getValue()
getValue in interface ValueEnum
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||