Interface LabelModel

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.net.URI getGlyphURI()  
      java.lang.String getLabel()  
      com.globalmentor.net.ContentType getLabelContentType()  
      void setGlyphURI​(java.net.URI newIcon)
      Sets the URI of the icon.
      void setLabel​(java.lang.String newLabelText)
      Sets the text of the label.
      void setLabelContentType​(com.globalmentor.net.ContentType newLabelTextContentType)
      Sets the content type of the label text.
      • Methods inherited from interface com.globalmentor.beans.PropertyBindable

        addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
      • Methods inherited from interface com.globalmentor.beans.PropertyConstrainable

        addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener
    • Field Detail

      • GLYPH_URI_PROPERTY

        static final java.lang.String GLYPH_URI_PROPERTY
        The icon bound property.
      • LABEL_PROPERTY

        static final java.lang.String LABEL_PROPERTY
        The label bound property.
      • LABEL_CONTENT_TYPE_PROPERTY

        static final java.lang.String LABEL_CONTENT_TYPE_PROPERTY
        The label content type bound property.
    • Method Detail

      • getGlyphURI

        java.net.URI getGlyphURI()
        Returns:
        The glyph URI, which may be a resource URI, or null if there is no glyph URI.
      • setGlyphURI

        void setGlyphURI​(java.net.URI newIcon)
        Sets the URI of the icon. This is a bound property.
        Parameters:
        newIcon - The new URI of the icon, which may be a resource URI.
        See Also:
        GLYPH_URI_PROPERTY
      • getLabel

        java.lang.String getLabel()
        Returns:
        The label text, which may include a resource reference, or null if there is no label text.
      • setLabel

        void setLabel​(java.lang.String newLabelText)
        Sets the text of the label. This is a bound property.
        Parameters:
        newLabelText - The new text of the label, which may include a resource reference.
        See Also:
        LABEL_PROPERTY
      • getLabelContentType

        com.globalmentor.net.ContentType getLabelContentType()
        Returns:
        The content type of the label text.
      • setLabelContentType

        void setLabelContentType​(com.globalmentor.net.ContentType newLabelTextContentType)
        Sets the content type of the label text. This is a bound property.
        Parameters:
        newLabelTextContentType - The new label text content type.
        Throws:
        java.lang.NullPointerException - if the given content type is null.
        java.lang.IllegalArgumentException - if the given content type is not a text content type.
        See Also:
        LABEL_CONTENT_TYPE_PROPERTY