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
-
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldcalendarItems
.getVolumeYears.getYear()
Getter for the fieldyear
.boolean
Checks whether the conditions for displaying the calendar view have been met.void
Populates the calendar with items.void
Setter for the fieldyear
.
-
Constructor Details
-
CalendarView
public CalendarView(String pi, String anchorPi, String year) throws IndexUnreachableException, PresentationException Constructor.- Parameters:
pi
- Record identifieranchorPi
- Anchor record identifier (must be same as pi if this is an anchor)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:
- a boolean.
- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.
-
populateCalendar
Populates the calendar with items.- Throws:
PresentationException
- if any.IndexUnreachableException
- if any.
-
getVolumeYears
getVolumeYears.
- Returns:
- a
List
object. - 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
-