|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<JSONDateFormat>
com.smartgwt.client.types.JSONDateFormat
public enum JSONDateFormat
Format for encoding dates in JSON. Note you can override JSONEncoder.encodeDate for a custom format.
| Enum Constant Summary | |
|---|---|
DATE_CONSTRUCTOR
dates are encoded as raw JavaScript code for creating a Date object, that is: |
|
XML_SCHEMA
dates are is encoded as a String in XML Schema date format in UTC, for example, "2005-08-02" for logical date fields or "2005-08-01T21:35:48.350" for datetime fields. |
|
| Method Summary | |
|---|---|
java.lang.String |
getValue()
|
static JSONDateFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JSONDateFormat[] |
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 JSONDateFormat XML_SCHEMA
datetime fields. See Date format and storage for more
information.
public static final JSONDateFormat DATE_CONSTRUCTOR
new Date(1238792738633)This is not strictly valid JSON, but if eval()d, will result in an identical date object, regardless of timezone.
| Method Detail |
|---|
public static JSONDateFormat[] values()
for (JSONDateFormat c : JSONDateFormat.values()) System.out.println(c);
public static JSONDateFormat 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 | ||||||||