Package com.vaadin.v7.shared.ui.calendar
Enum CalendarState.EventSortOrder
- java.lang.Object
-
- java.lang.Enum<CalendarState.EventSortOrder>
-
- com.vaadin.v7.shared.ui.calendar.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.UNSORTEDmeans no sort. Events will be in the order provided by com.vaadin.ui.components.calendar.event.CalendarEventProvider.START_DATE_DESCmeans descending sort by events start date (earlier event are shown first).DURATION_DESCmeans descending sort by duration (longer event are shown first).START_DATE_ASCmeans ascending sort by events start date (later event are shown first).DURATION_ASCmeans ascending sort by duration (shorter event are shown first).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DURATION_ASCDURATION_DESCSTART_DATE_ASCSTART_DATE_DESCUNSORTED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CalendarState.EventSortOrdervalueOf(String name)Returns the enum constant of this type with the specified name.static CalendarState.EventSortOrder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSORTED
public static final CalendarState.EventSortOrder UNSORTED
-
START_DATE_DESC
public static final CalendarState.EventSortOrder START_DATE_DESC
-
START_DATE_ASC
public static final CalendarState.EventSortOrder START_DATE_ASC
-
DURATION_DESC
public static final CalendarState.EventSortOrder DURATION_DESC
-
DURATION_ASC
public static final CalendarState.EventSortOrder DURATION_ASC
-
-
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 nameNullPointerException- if the argument is null
-
-