public enum TimePickerType extends java.lang.Enum<TimePickerType>
分别控制“年”“月”“日”“时”“分”“秒”的显示或隐藏。
| Enum Constant and Description |
|---|
ALL
显示“年”“月”“日”“时”“分”“秒”
|
DATE
显示“年”“月”“日”“时”“分”
|
DEFAULT
显示“年”“月”“日”
|
TIME
显示“时”“分”“秒”
|
| Modifier and Type | Method and Description |
|---|---|
boolean[] |
getType() |
static TimePickerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimePickerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimePickerType DEFAULT
public static final TimePickerType ALL
public static final TimePickerType TIME
public static final TimePickerType DATE
public static TimePickerType[] values()
for (TimePickerType c : TimePickerType.values()) System.out.println(c);
public static TimePickerType 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 namejava.lang.NullPointerException - if the argument is nullpublic boolean[] getType()