Class LocaleInfoModel

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, InfoModel, LabelModel, Model

public class LocaleInfoModel extends DefaultInfoModel
An info model that provides a localized version of a locale name.
Author:
Garret Wilson
  • Constructor Details

    • LocaleInfoModel

      public LocaleInfoModel(Locale locale)
      Constructs an info model indicating the locale to represent.
      Parameters:
      locale - The locale to be represented by the info model.
      Throws:
      NullPointerException - if the given locale is null.
  • Method Details

    • getSession

      public GuiseSession getSession()
      Returns:
      The Guise session that owns this object.
    • getLocale

      public Locale getLocale()
      Returns:
      The locale the label should represent.
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface LabelModel
      Overrides:
      getLabel in class DefaultLabelModel
      Returns:
      The label text, which may include a resource reference, or null if there is no label text.