Package io.goobi.viewer.model.calendar
Class CalendarItemMonth
java.lang.Object
io.goobi.viewer.model.calendar.AbstractCalendarItem
io.goobi.viewer.model.calendar.CalendarItemMonth
- All Implemented Interfaces:
ICalendarItem,Serializable,Comparable<ICalendarItem>
Calendar browsing item representing a single month.
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.calendar.AbstractCalendarItem
hits, name, selected, value -
Constructor Summary
ConstructorsConstructorDescriptionCalendarItemMonth(String name, int value, int hits) Creates a new CalendarItemMonth instance. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fielddaysOfMonth.Getter for the fieldweeksOfMonth.voidsetDaysOfMonth(List<CalendarItemDay> daysOfMonth) Setter for the fielddaysOfMonth.voidsetWeeksOfMonth(List<CalendarItemWeek> weeksOfMonth) Setter for the fieldweeksOfMonth.toString()Methods inherited from class io.goobi.viewer.model.calendar.AbstractCalendarItem
addHits, getFormattedValue, getHits, getName, getValue, isEmpty, isSelected, setHits, setSelectedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.goobi.viewer.model.calendar.ICalendarItem
compareTo
-
Constructor Details
-
CalendarItemMonth
Creates a new CalendarItemMonth instance.- Parameters:
name- display name of the month (e.g. "January").value- numeric month value (1-12).hits- number of records for this month.
-
-
Method Details
-
getDaysOfMonth
Getter for the fielddaysOfMonth.- Returns:
- list of calendar day items for this month.
-
setDaysOfMonth
Setter for the fielddaysOfMonth.- Parameters:
daysOfMonth- list of calendar day items to set.
-
getWeeksOfMonth
Getter for the fieldweeksOfMonth.- Returns:
- list of calendar week items for this month.
-
setWeeksOfMonth
Setter for the fieldweeksOfMonth.- Parameters:
weeksOfMonth- list of calendar week items to set.
-
toString
-