Serializable, Comparable<TimePicker.AmPmOrder>public static enum TimePicker.AmPmOrder extends Enum<TimePicker.AmPmOrder>
TimePicker.
For example, the column can be displayed at the start or in the end of the time picker by using
START or END. The direction (left-to-right or right-to-left) of START and
END values depends on the specified Component.isRtl() value. If you do not want to use a
relative direction, you can specify the LEFT or RIGHT value for
the column.
| 枚举常量 | 说明 |
|---|---|
END |
Indicates that the column representing a.m.
|
LEFT |
Indicates that the column representing a.m.
|
RIGHT |
Indicates that the column representing a.m.
|
START |
Indicates that the column representing a.m.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static TimePicker.AmPmOrder |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static TimePicker.AmPmOrder[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (TimePicker.AmPmOrder c : TimePicker.AmPmOrder.values()) System.out.println(c); |
public static final TimePicker.AmPmOrder START
public static final TimePicker.AmPmOrder END
public static final TimePicker.AmPmOrder LEFT
public static final TimePicker.AmPmOrder RIGHT
public static TimePicker.AmPmOrder[] values()
for (TimePicker.AmPmOrder c : TimePicker.AmPmOrder.values()) System.out.println(c);
public static TimePicker.AmPmOrder valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值