Class TranslatedSelectable<T>

java.lang.Object
io.goobi.viewer.model.cms.Selectable<T>
io.goobi.viewer.model.cms.TranslatedSelectable<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable, Comparable<Selectable<T>>
Direct Known Subclasses:
CategorizableTranslatedSelectable

public class TranslatedSelectable<T> extends Selectable<T>
A Selectable which may also hold a locale to indicate the currently visible language/translation
Author:
florian
See Also:
  • Constructor Details

    • TranslatedSelectable

      public TranslatedSelectable(T value, boolean selected, Locale defaultLocale)

      Constructor for TranslatedSelectable.

      Parameters:
      value - a T object.
      selected - a boolean.
      defaultLocale - a Locale object.
  • Method Details

    • getLocale

      public Locale getLocale()

      Getter for the field locale.

      Returns:
      the locale
    • setLocale

      public void setLocale(Locale locale)

      Setter for the field locale.

      Parameters:
      locale - the locale to set
    • getLanguage

      public String getLanguage()

      getLanguage.

      Returns:
      a String object.
    • setLanguage

      public void setLanguage(String language)

      setLanguage.

      Parameters:
      language - a String object.