org.gwtbootstrap3.extras.datetimepicker.client.ui.base.constants
Enum DateTimePickerView

java.lang.Object
  extended by java.lang.Enum<DateTimePickerView>
      extended by org.gwtbootstrap3.extras.datetimepicker.client.ui.base.constants.DateTimePickerView
All Implemented Interfaces:
Serializable, Comparable<DateTimePickerView>

public enum DateTimePickerView
extends Enum<DateTimePickerView>

0 or 'hour' for the hour view 1 or 'day' for the day view 2 or 'month' for month view (the default) 3 or 'year' for the 12-month overview 4 or 'decade' for the 10-year overview. Useful for date-of-birth datetimepickers.

Author:
Joshua Godi

Enum Constant Summary
DAY
           
DECADE
           
HOUR
           
MONTH
           
YEAR
           
 
Method Summary
 int getValue()
           
static DateTimePickerView valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DateTimePickerView[] 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

HOUR

public static final DateTimePickerView HOUR

DAY

public static final DateTimePickerView DAY

MONTH

public static final DateTimePickerView MONTH

YEAR

public static final DateTimePickerView YEAR

DECADE

public static final DateTimePickerView DECADE
Method Detail

values

public static DateTimePickerView[] 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 (DateTimePickerView c : DateTimePickerView.values())
    System.out.println(c);

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

valueOf

public static DateTimePickerView 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 int getValue()


Copyright © 2015. All rights reserved.