com.sencha.gxt.core.client.util
Enum DateWrapper.Unit

java.lang.Object
  extended by java.lang.Enum<DateWrapper.Unit>
      extended by com.sencha.gxt.core.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


Enum Constant Summary
DAY
           
HOUR
           
MILLI
           
MINUTE
           
MONTH
           
SECOND
           
YEAR
           
 
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
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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


Copyright © 2012. All Rights Reserved.