com.extjs.gxt.ui.client.util
Enum DateWrapper.Unit
java.lang.Object
java.lang.Enum<DateWrapper.Unit>
com.extjs.gxt.ui.client.util.DateWrapper.Unit
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<DateWrapper.Unit>
- Enclosing class:
- DateWrapper
public static enum DateWrapper.Unit
- extends java.lang.Enum<DateWrapper.Unit>
Represents the different unit values that the
DateWrapper.add(Unit, int)
method takes
Method Summary |
static DateWrapper.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DateWrapper.Unit[] |
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 |
DAY
public static final DateWrapper.Unit DAY
HOUR
public static final DateWrapper.Unit HOUR
MILLI
public static final DateWrapper.Unit MILLI
MINUTE
public static final DateWrapper.Unit MINUTE
MONTH
public static final DateWrapper.Unit MONTH
SECOND
public static final DateWrapper.Unit SECOND
YEAR
public static final DateWrapper.Unit YEAR
values
public static DateWrapper.Unit[] 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 (DateWrapper.Unit c : DateWrapper.Unit.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DateWrapper.Unit valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null