Class DefaultInfoModel

java.lang.Object
com.globalmentor.beans.BoundPropertyObject
All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, InfoModel, LabelModel, Model
Direct Known Subclasses:
AbstractPrototype, Breadcrumb, DefaultTableColumnModel, LocaleInfoModel, ValueConverterInfoModel

public class DefaultInfoModel extends DefaultLabelModel implements InfoModel
A default implementation of a model for a label and descriptive information.
Author:
Garret Wilson
  • Constructor Details

    • DefaultInfoModel

      public DefaultInfoModel()
      Default constructor.
    • DefaultInfoModel

      public DefaultInfoModel(String label)
      Label constructor.
      Parameters:
      label - The text of the label, or null if there should be no label.
    • DefaultInfoModel

      public DefaultInfoModel(String label, URI glyphURI)
      Label and glyph URI constructor.
      Parameters:
      label - The text of the label, or null if there should be no label.
      glyphURI - The glyph URI, which may be a resource URI, or null if there is no glyph URI.
  • Method Details

    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface InfoModel
      Returns:
      The description text, such as might appear in a flyover, or null if there is no description.
    • setDescription

      public void setDescription(String newDescription)
      Description copied from interface: InfoModel
      Sets the description text, such as might appear in a flyover. This is a bound property.
      Specified by:
      setDescription in interface InfoModel
      Parameters:
      newDescription - The new text of the description, such as might appear in a flyover.
      See Also:
    • getDescriptionContentType

      public com.globalmentor.net.MediaType getDescriptionContentType()
      Specified by:
      getDescriptionContentType in interface InfoModel
      Returns:
      The content type of the description text.
    • setDescriptionContentType

      public void setDescriptionContentType(com.globalmentor.net.MediaType newDescriptionContentType)
      Description copied from interface: InfoModel
      Sets the content type of the description text. This is a bound property.
      Specified by:
      setDescriptionContentType in interface InfoModel
      Parameters:
      newDescriptionContentType - The new description text content type.
      See Also:
    • getInfo

      public String getInfo()
      Specified by:
      getInfo in interface InfoModel
      Returns:
      The advisory information text, such as might appear in a tooltip, or null if there is no advisory information.
    • setInfo

      public void setInfo(String newInfo)
      Description copied from interface: InfoModel
      Sets the advisory information text, such as might appear in a tooltip. This is a bound property.
      Specified by:
      setInfo in interface InfoModel
      Parameters:
      newInfo - The new text of the advisory information, such as might appear in a tooltip.
      See Also:
    • getInfoContentType

      public com.globalmentor.net.MediaType getInfoContentType()
      Specified by:
      getInfoContentType in interface InfoModel
      Returns:
      The content type of the advisory information text.
    • setInfoContentType

      public void setInfoContentType(com.globalmentor.net.MediaType newInfoContentType)
      Description copied from interface: InfoModel
      Sets the content type of the advisory information text. This is a bound property.
      Specified by:
      setInfoContentType in interface InfoModel
      Parameters:
      newInfoContentType - The new advisory information text content type.
      See Also: