Enum CalendarViewType

    • Enum Constant Detail

      • YEARLY

        public static final CalendarViewType YEARLY
        The calendar view is yearly.
      • MONTHLY

        public static final CalendarViewType MONTHLY
        The calendar view is monthly.
      • WEEKLY

        public static final CalendarViewType WEEKLY
        The calendar view is weekly.
      • NEXT_EVENTS

        public static final CalendarViewType NEXT_EVENTS
        The calendar view is on the next events.
    • Method Detail

      • values

        public static CalendarViewType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CalendarViewType c : CalendarViewType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CalendarViewType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • toString

        public String toString()
        Converts this view type in a string representation. The value of the string depends on the calendar view rendering engine. It should be a value that matches the view mode supported by the underlying calendar renderer.
        Overrides:
        toString in class Enum<CalendarViewType>
        Returns:
      • isYearlyView

        public boolean isYearlyView()
        Is this view type is a yearly one.
        Returns:
        true if this view type is for a yearly one, false otherwise.
      • isMonthlyView

        public boolean isMonthlyView()
        Is this view type is a monthly one.
        Returns:
        true if this view type is for a monthly one, false otherwise.
      • isWeeklyView

        public boolean isWeeklyView()
        Is this view type is a weekly one.
        Returns:
        true if this view type is for a weekly one, false otherwise.
      • isDailyView

        public boolean isDailyView()
        Is this view type is a daily one.
        Returns:
        true if this view type is for a daily one, false otherwise.
      • isNextEventsView

        public boolean isNextEventsView()
        Is this view type is a on the next events.
        Returns:
        true if this view type is on the next events one, false otherwise.
      • getName

        public String getName()
        Gets the name of this enum.
        Returns:
        the enum name.
        See Also:
        Enum.name()
      • getPeriodeType

        public PeriodType getPeriodeType()