Package io.goobi.viewer.model.citation
Class CitationList
java.lang.Object
io.goobi.viewer.model.citation.CitationList
Contains a list of
CitationLinks along with a viewManager state wich tracks current page number and logId The method
isCurrent(ViewManager) checks whether this list reflects to same state as the given ViewManager regarding the
level of the included citation links-
Constructor Summary
ConstructorsConstructorDescriptionCitationList(List<CitationLink> list, CitationLink.CitationLinkLevel level, ViewManager viewManager) Constructor creating state from aViewManagerCitationList(List<CitationLink> list, CitationLink.CitationLinkLevel level, String logId, int page) Constructor creating state from individual properties -
Method Summary
Modifier and TypeMethodDescriptiongetList()get the actual list of citation linksbooleanisCurrent(ViewManager viewManager) Check whether the state of this list reflects the same state as the given ViewManager regarding the level for which the list was created
-
Constructor Details
-
CitationList
public CitationList(List<CitationLink> list, CitationLink.CitationLinkLevel level, ViewManager viewManager) Constructor creating state from aViewManager- Parameters:
list- the list of citation linkslevel- the level this list pertains toviewManager- the viewmanager providing the state
-
CitationList
public CitationList(List<CitationLink> list, CitationLink.CitationLinkLevel level, String logId, int page) Constructor creating state from individual properties- Parameters:
list- the list of citation linkslevel- the level this list pertains tologId- the logId for which this is was createdpage- the page for which this list was created
-
-
Method Details
-
getList
get the actual list of citation links- Returns:
- a list of
CitationLinks
-
isCurrent
Check whether the state of this list reflects the same state as the given ViewManager regarding the level for which the list was created- Parameters:
viewManager-- Returns:
- true if the state of this list reflects the same state as the given ViewManager regarding the level for which the list was created; false otherwise
-