com.smartgwt.client.types
Enum DateItemSelectorFormat

java.lang.Object
  extended by java.lang.Enum<DateItemSelectorFormat>
      extended by com.smartgwt.client.types.DateItemSelectorFormat
All Implemented Interfaces:
ValueEnum, Serializable, Comparable<DateItemSelectorFormat>

public enum DateItemSelectorFormat
extends Enum<DateItemSelectorFormat>
implements ValueEnum

See Also:
DateItem.setSelectorFormat(com.smartgwt.client.types.DateItemSelectorFormat)

Enum Constant Summary
DAY_MONTH
          Output fields in day, month order.
DAY_MONTH_YEAR
          Output fields in day, month, year order.
MONTH_DAY
          Output only month, day fields.
MONTH_DAY_YEAR
          Output fields in month, day, year order.
MONTH_YEAR
          Output only month, year fields.
YEAR_MONTH
          Output only year, month fields.
YEAR_MONTH_DAY
          Output fields in year, month, day order.
 
Method Summary
 String getValue()
           
static DateItemSelectorFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DateItemSelectorFormat[] 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

DAY_MONTH_YEAR

public static final DateItemSelectorFormat DAY_MONTH_YEAR
Output fields in day, month, year order.


MONTH_DAY_YEAR

public static final DateItemSelectorFormat MONTH_DAY_YEAR
Output fields in month, day, year order.


YEAR_MONTH_DAY

public static final DateItemSelectorFormat YEAR_MONTH_DAY
Output fields in year, month, day order.


DAY_MONTH

public static final DateItemSelectorFormat DAY_MONTH
Output fields in day, month order.


MONTH_DAY

public static final DateItemSelectorFormat MONTH_DAY
Output only month, day fields.


YEAR_MONTH

public static final DateItemSelectorFormat YEAR_MONTH
Output only year, month fields.


MONTH_YEAR

public static final DateItemSelectorFormat MONTH_YEAR
Output only month, year fields.

Method Detail

values

public static DateItemSelectorFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DateItemSelectorFormat c : DateItemSelectorFormat.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DateItemSelectorFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getValue

public String getValue()
Specified by:
getValue in interface ValueEnum