Package io.goobi.viewer.model.calendar
Class CalendarItemDay
java.lang.Object
io.goobi.viewer.model.calendar.AbstractCalendarItem
io.goobi.viewer.model.calendar.CalendarItemDay
- All Implemented Interfaces:
ICalendarItem,Serializable,Comparable<ICalendarItem>
Calendar browsing item representing a single day.
- See Also:
-
Field Summary
Fields inherited from class io.goobi.viewer.model.calendar.AbstractCalendarItem
hits, name, selected, value -
Constructor Summary
ConstructorsConstructorDescriptionCalendarItemDay(String name, int value, int hits) Creates a new CalendarItemDay instance. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fielddayOfWeek.getQuery()Getter for the fieldquery.Getter for the fieldsingleResultUrl.voidsetDayOfWeek(String dayOfWeek) Setter for the fielddayOfWeek.voidSetter for the fieldquery.voidsetSingleResultUrl(String singleResultUrl) Setter for the fieldsingleResultUrl.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
-
CalendarItemDay
Creates a new CalendarItemDay instance.- Parameters:
name- display label for the dayvalue- numeric day value (1–31)hits- number of search hits for this day
-
-
Method Details
-
getQuery
Getter for the fieldquery.- Returns:
- the Solr query string used to retrieve hits for this calendar day
-
setQuery
Setter for the fieldquery.- Parameters:
query- the Solr query string used to retrieve hits for this calendar day
-
getSingleResultUrl
Getter for the fieldsingleResultUrl.- Returns:
- the URL to navigate to when exactly one hit exists for this calendar day
-
setSingleResultUrl
Setter for the fieldsingleResultUrl.- Parameters:
singleResultUrl- the URL to navigate to when exactly one hit exists for this day
-
getDayOfWeek
Getter for the fielddayOfWeek.- Returns:
- the localised name of the day of the week (e.g. "Monday")
-
setDayOfWeek
Setter for the fielddayOfWeek.- Parameters:
dayOfWeek- the localised name of the day of the week (e.g. "Monday")
-
toString
-