Package io.guise.framework.model
Class DefaultInfoModel
java.lang.Object
com.globalmentor.beans.BoundPropertyObject
io.guise.framework.model.AbstractModel
io.guise.framework.model.DefaultLabelModel
io.guise.framework.model.DefaultInfoModel
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,InfoModel
,LabelModel
,Model
- Direct Known Subclasses:
AbstractPrototype
,Breadcrumb
,DefaultTableColumnModel
,LocaleInfoModel
,ValueConverterInfoModel
A default implementation of a model for a label and descriptive information.
- Author:
- Garret Wilson
-
Field Summary
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
Fields inherited from interface io.guise.framework.model.InfoModel
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY
Fields inherited from interface io.guise.framework.model.LabelModel
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DefaultInfoModel
(String label) Label constructor.DefaultInfoModel
(String label, URI glyphURI) Label and glyph URI constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.globalmentor.net.MediaType
getInfo()
com.globalmentor.net.MediaType
void
setDescription
(String newDescription) Sets the description text, such as might appear in a flyover.void
setDescriptionContentType
(com.globalmentor.net.MediaType newDescriptionContentType) Sets the content type of the description text.void
Sets the advisory information text, such as might appear in a tooltip.void
setInfoContentType
(com.globalmentor.net.MediaType newInfoContentType) Sets the content type of the advisory information text.Methods inherited from class io.guise.framework.model.DefaultLabelModel
getGlyphURI, getLabel, getLabelContentType, setGlyphURI, setLabel, setLabelContentType, toString
Methods inherited from class io.guise.framework.model.AbstractModel
getEventListenerManager, getPlainText
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.guise.framework.model.LabelModel
getGlyphURI, getLabel, getLabelContentType, setGlyphURI, setLabel, setLabelContentType
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
-
Constructor Details
-
DefaultInfoModel
public DefaultInfoModel()Default constructor. -
DefaultInfoModel
Label constructor.- Parameters:
label
- The text of the label, ornull
if there should be no label.
-
DefaultInfoModel
Label and glyph URI constructor.- Parameters:
label
- The text of the label, ornull
if there should be no label.glyphURI
- The glyph URI, which may be a resource URI, ornull
if there is no glyph URI.
-
-
Method Details
-
getDescription
- Specified by:
getDescription
in interfaceInfoModel
- Returns:
- The description text, such as might appear in a flyover, or
null
if there is no description.
-
setDescription
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 interfaceInfoModel
- 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 interfaceInfoModel
- 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 interfaceInfoModel
- Parameters:
newDescriptionContentType
- The new description text content type.- See Also:
-
getInfo
-
setInfo
Description copied from interface:InfoModel
Sets the advisory information text, such as might appear in a tooltip. This is a bound property. -
getInfoContentType
public com.globalmentor.net.MediaType getInfoContentType()- Specified by:
getInfoContentType
in interfaceInfoModel
- 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 interfaceInfoModel
- Parameters:
newInfoContentType
- The new advisory information text content type.- See Also:
-