Enum Class CalendarView.YearDisplayMode
- All Implemented Interfaces:
Serializable, Comparable<CalendarView.YearDisplayMode>, Constable
- Enclosing class:
CalendarView
Enumerates the display modes for the year label at the top of the calendar view.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDisplays the year text with a dropdown button.Displays the year text with a spinner for adjustment.Displays only the year text. -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarView.YearDisplayModeReturns the enum constant of this class with the specified name.static CalendarView.YearDisplayMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT_ONLY
Displays only the year text. This is the default mode. -
TEXT_AND_SPINNER
Displays the year text with a spinner for adjustment. -
TEXT_AND_DROPDOWN
Displays the year text with a dropdown button.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-