Enum Class CalendarView.HeaderLayout
- All Implemented Interfaces:
Serializable, Comparable<CalendarView.HeaderLayout>, Constable
- Enclosing class:
CalendarView
Different layouts that can be used to position the month, the year, and
the various navigation elements in the header of the view. We are intentionally
not using the
HPos enumeration object as we have good
reason to believe that additional layouts will be added in the future.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CalendarView.HeaderLayoutReturns the enum constant of this class with the specified name.static CalendarView.HeaderLayout[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CENTER
Centers the month and year in the middle. The previous / next month buttons will be on the left and right. -
LEFT
Positions the month and the year on the left side. The previous / next month buttons will both be on the right side. -
RIGHT
Positions the month and the year on the right side. The previous / next month buttons will both be on the left side.
-
-
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
-