|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<DateField.Resolution> com.vaadin.ui.DateField.Resolution
public static enum DateField.Resolution
Resolutions for DateFields
Enum Constant Summary | |
---|---|
DAY
|
|
HOUR
|
|
MINUTE
|
|
MONTH
|
|
SECOND
|
|
YEAR
|
Method Summary | |
---|---|
int |
getCalendarField()
Returns the field in Calendar that corresponds to this
resolution. |
static Iterable<DateField.Resolution> |
getResolutionsHigherOrEqualTo(DateField.Resolution r)
Returns the resolutions that are higher or equal to the given resolution, starting from the given resolution. |
static List<DateField.Resolution> |
getResolutionsLowerThan(DateField.Resolution r)
Returns the resolutions that are lower than the given resolution, starting from the given resolution. |
static DateField.Resolution |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DateField.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 |
---|
public static final DateField.Resolution SECOND
public static final DateField.Resolution MINUTE
public static final DateField.Resolution HOUR
public static final DateField.Resolution DAY
public static final DateField.Resolution MONTH
public static final DateField.Resolution YEAR
Method Detail |
---|
public static DateField.Resolution[] values()
for (DateField.Resolution c : DateField.Resolution.values()) System.out.println(c);
public static DateField.Resolution valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getCalendarField()
Calendar
that corresponds to this
resolution.
public static Iterable<DateField.Resolution> getResolutionsHigherOrEqualTo(DateField.Resolution r)
r
- The resolution to start from
public static List<DateField.Resolution> getResolutionsLowerThan(DateField.Resolution r)
r
- The resolution to start from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |