Enum CalendarState.EventSortOrder

  • All Implemented Interfaces:
    Serializable, Comparable<CalendarState.EventSortOrder>
    Enclosing class:
    CalendarState

    public static enum CalendarState.EventSortOrder
    extends Enum<CalendarState.EventSortOrder>
    Defines sort strategy for events in calendar month view and week view. In month view events will be sorted from top to bottom using the order in day cell. In week view events inside same day will be sorted from left to right using the order if their intervals are overlapping.

    • UNSORTED means no sort. Events will be in the order provided by com.vaadin.ui.components.calendar.event.CalendarEventProvider.
    • START_DATE_DESC means descending sort by events start date (earlier event are shown first).
    • DURATION_DESC means descending sort by duration (longer event are shown first).
    • START_DATE_ASC means ascending sort by events start date (later event are shown first).
    • DURATION_ASC means ascending sort by duration (shorter event are shown first).
    • Method Detail

      • values

        public static CalendarState.EventSortOrder[] 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 (CalendarState.EventSortOrder c : CalendarState.EventSortOrder.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CalendarState.EventSortOrder 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