Package io.goobi.viewer.model.viewer
Class CompoundLabeledLink
java.lang.Object
io.goobi.viewer.model.viewer.LabeledLink
io.goobi.viewer.model.viewer.CompoundLabeledLink
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CollectionLabeledLink
A labeled link composed of a primary and a secondary link component.
- Author:
- Florian Alpers
- See Also:
-
Field Summary
FieldsFields inherited from class io.goobi.viewer.model.viewer.LabeledLink
EMPTY, name, url, weight -
Constructor Summary
ConstructorsConstructorDescriptionCompoundLabeledLink(String name, String url, String field, int weight) Creates a new CompoundLabeledLink instance.Creates a new CompoundLabeledLink instance. -
Method Summary
-
Field Details
-
field
-
hierarchy
-
-
Constructor Details
-
CompoundLabeledLink
Creates a new CompoundLabeledLink instance.- Parameters:
name- display label for the linkurl- target URL for the linkfield- Solr field name for the collectionweight- sort weight of the link
-
CompoundLabeledLink
public CompoundLabeledLink(String name, String url, String field, List<String> hierarchy, int weight) Creates a new CompoundLabeledLink instance.- Parameters:
name- display label for the linkurl- target URL for the linkfield- Solr field name for the collectionhierarchy- ordered list of ancestor collection namesweight- sort weight of the link
-
-
Method Details
-
getSubLinks
getSubLinks.- Returns:
- List of labeled links, one for each hierarchy level
-