Package io.goobi.viewer.model.cms
Class CategorizableTranslatedSelectable<T>
java.lang.Object
io.goobi.viewer.model.cms.Selectable<T>
io.goobi.viewer.model.cms.TranslatedSelectable<T>
io.goobi.viewer.model.cms.CategorizableTranslatedSelectable<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable,Comparable<Selectable<T>>
public class CategorizableTranslatedSelectable<T>
extends TranslatedSelectable<T>
implements Serializable
A
TranslatedSelectable which may also contain a list of categories.- Author:
- Florian Alpers
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCategorizableTranslatedSelectable(T value, boolean selected, Locale defaultLocale, List<Selectable<CMSCategory>> categories) Creates a new CategorizableTranslatedSelectable instance. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldcategories.getSelectedCategories.voidsetCategories(List<Selectable<CMSCategory>> categories) Setter for the fieldcategories.Methods inherited from class io.goobi.viewer.model.cms.TranslatedSelectable
getLanguage, getLocale, setLanguage, setLocaleMethods inherited from class io.goobi.viewer.model.cms.Selectable
compareTo, equals, getValue, hashCode, isSelected, setSelected, toString
-
Constructor Details
-
CategorizableTranslatedSelectable
public CategorizableTranslatedSelectable(T value, boolean selected, Locale defaultLocale, List<Selectable<CMSCategory>> categories) Creates a new CategorizableTranslatedSelectable instance.- Parameters:
value- wrapped item valueselected- initial selection statedefaultLocale- locale used for translation displaycategories- selectable CMS categories associated with this item
-
-
Method Details
-
getCategories
Getter for the fieldcategories.- Returns:
- the list of selectable CMS categories associated with this item
-
setCategories
Setter for the fieldcategories.- Parameters:
categories- selectable CMS categories to assign
-
getSelectedCategories
getSelectedCategories.- Returns:
- a list of CMS categories that are currently selected
-