Enum Class FullCalendarSettings.View
java.lang.Object
java.lang.Enum<FullCalendarSettings.View>
com.jalios.jcms.calendar.fullcalendar.FullCalendarSettings.View
- All Implemented Interfaces:
Serializable,Comparable<FullCalendarSettings.View>,Constable
- Enclosing class:
FullCalendarSettings
Views provided by the core calendar component.
Custom FullCalendar views remain supported through the builder methods
accepting a String.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the view name expected by FullCalendar.booleanChecks whether a FullCalendar view name identifies this view.static StringNormalizes a FullCalendar view name while preserving custom views.static FullCalendarSettings.ViewReturns the enum constant of this class with the specified name.static FullCalendarSettings.View[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TIME_GRID_DAY
-
FIVE_DAYS
-
TIME_GRID_WEEK
-
DAY_GRID_MONTH
-
LIST_WEEK
-
-
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
-
getViewName
Returns the view name expected by FullCalendar.- Returns:
- the FullCalendar view name
-
matches
Checks whether a FullCalendar view name identifies this view.- Parameters:
viewName- FullCalendar view name- Returns:
truewhen the view names match
-
normalize
Normalizes a FullCalendar view name while preserving custom views.- Parameters:
viewName- FullCalendar view name- Returns:
- the normalized view name
-