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 Detail

      • LocaleInfoModel

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

      • getSession

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

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

        public java.lang.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.