Enum CalendarView
- java.lang.Object
-
- java.lang.Enum<CalendarView>
-
- com.googlecode.wicket.jquery.ui.calendar.CalendarView
-
- All Implemented Interfaces:
Serializable,Comparable<CalendarView>
public enum CalendarView extends Enum<CalendarView>
Provides an enum of available calendar views- Author:
- Sebastien Briquet - sebfz1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description agendaDayagendaWeekbasicDaybasicWeekmonthresourceDayresourceMonthresourceNextWeeksresourceWeek
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CalendarViewget(String viewName)Safely get theCalendarViewcorresponding to the supplied view namestatic CalendarViewvalueOf(String name)Returns the enum constant of this type with the specified name.static CalendarView[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
month
public static final CalendarView month
-
basicWeek
public static final CalendarView basicWeek
-
basicDay
public static final CalendarView basicDay
-
agendaWeek
public static final CalendarView agendaWeek
-
agendaDay
public static final CalendarView agendaDay
-
resourceDay
public static final CalendarView resourceDay
-
resourceWeek
public static final CalendarView resourceWeek
-
resourceNextWeeks
public static final CalendarView resourceNextWeeks
-
resourceMonth
public static final CalendarView resourceMonth
-
-
Method Detail
-
values
public static CalendarView[] 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 (CalendarView c : CalendarView.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CalendarView 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
-
get
public static CalendarView get(String viewName)
Safely get theCalendarViewcorresponding to the supplied view name- Parameters:
viewName- the view name- Returns:
- null if the view name does not correspond to a view of the enum
-
-