com.vaadin.addon.touchkit.gwt.client.ui
Enum DatePicker.Resolution

java.lang.Object
  extended by java.lang.Enum<DatePicker.Resolution>
      extended by com.vaadin.addon.touchkit.gwt.client.ui.DatePicker.Resolution
All Implemented Interfaces:
Serializable, Comparable<DatePicker.Resolution>
Enclosing class:
DatePicker

public static enum DatePicker.Resolution
extends Enum<DatePicker.Resolution>

Resolution of widget


Enum Constant Summary
DAY
          Resolution in days
MONTH
          Resolution in months
TIME
          Resolution in time (usually minutes)
 
Method Summary
 com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat getPredefinedFormat()
           
 String getType()
          Get type value used in input field
static DatePicker.Resolution valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DatePicker.Resolution[] 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

TIME

public static final DatePicker.Resolution TIME
Resolution in time (usually minutes)


DAY

public static final DatePicker.Resolution DAY
Resolution in days


MONTH

public static final DatePicker.Resolution MONTH
Resolution in months

Method Detail

values

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

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

valueOf

public static DatePicker.Resolution 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

getType

public String getType()
Get type value used in input field

Returns:
Type value used in input field

getPredefinedFormat

public com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat getPredefinedFormat()


Copyright © 2014 Vaadin Ltd. All rights reserved.