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