Package io.goobi.viewer.model.calendar
Class CalendarView
java.lang.Object
io.goobi.viewer.model.calendar.CalendarView
- All Implemented Interfaces:
Serializable
Data for the calendar view of an individual record (e.g. newspaper).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarView(String pi, String anchorPi, String anchorField, String year) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldcalendarItems.getVolumeYears.getYear()Getter for the fieldyear.booleanChecks whether the conditions for displaying the calendar view have been met.voidPopulates the calendar with items.voidSetter for the fieldyear.
-
Constructor Details
-
CalendarView
public CalendarView(String pi, String anchorPi, String anchorField, String year) throws IndexUnreachableException, PresentationException Constructor.- Parameters:
pi- Record identifieranchorPi- Anchor record identifier (must be same as pi if this is an anchor)anchorField-year- Year of a volume; null, if this is an anchor!- Throws:
IndexUnreachableException- if any.PresentationException- if any.
-
-
Method Details
-
isDisplay
Checks whether the conditions for displaying the calendar view have been met.- Returns:
- true if more than one selectable year is available or more than one item for the currently selected year; false otherwise
- Throws:
PresentationException- if any.IndexUnreachableException- if any.
-
populateCalendar
Populates the calendar with items.- Throws:
PresentationException- if any.IndexUnreachableException- if any.
-
getVolumeYears
getVolumeYears.
- Returns:
- a
Listobject. - Throws:
PresentationException- if any.IndexUnreachableException- if any.
-
getYear
Getter for the field
year.- Returns:
- the year
-
setYear
Setter for the field
year.- Parameters:
year- the year to set
-
getCalendarItems
Getter for the field
calendarItems.- Returns:
- the calendarItems
-