|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<EnumTranslateStrategy>
com.smartgwt.client.types.EnumTranslateStrategy
public enum EnumTranslateStrategy
Determines how Java enums are translated to and from Javascript by the SmartClient server.
Enum Constant Summary | |
---|---|
BEAN
Translates to/from a Javascript object containing one property for each property defined within the enum. |
|
ORDINAL
Translates to/from an integer matching the ordinal number of the constant within the enumeration |
|
STRING
Translates to/from a String matching the constant name. |
Method Summary | |
---|---|
java.lang.String |
getValue()
|
static EnumTranslateStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static EnumTranslateStrategy[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EnumTranslateStrategy STRING
public static final EnumTranslateStrategy ORDINAL
public static final EnumTranslateStrategy BEAN
Method Detail |
---|
public static final EnumTranslateStrategy[] values()
for(EnumTranslateStrategy c : EnumTranslateStrategy.values()) System.out.println(c);
public static EnumTranslateStrategy 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 namepublic 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 |