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

public static enum FullCalendarSettings.View extends Enum<FullCalendarSettings.View>
Views provided by the core calendar component.

Custom FullCalendar views remain supported through the builder methods accepting a String.

  • Enum Constant Details

  • Method Details

    • values

      public static FullCalendarSettings.View[] 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

      public static FullCalendarSettings.View valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getViewName

      public String getViewName()
      Returns the view name expected by FullCalendar.
      Returns:
      the FullCalendar view name
    • matches

      public boolean matches(String viewName)
      Checks whether a FullCalendar view name identifies this view.
      Parameters:
      viewName - FullCalendar view name
      Returns:
      true when the view names match
    • normalize

      public static String normalize(String viewName)
      Normalizes a FullCalendar view name while preserving custom views.
      Parameters:
      viewName - FullCalendar view name
      Returns:
      the normalized view name