|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.model.AbstractModel
com.guiseframework.model.DefaultLabelModel
com.guiseframework.model.DefaultInfoModel
public class DefaultInfoModel
A default implementation of a model for a label and descriptive information.
| Field Summary |
|---|
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Fields inherited from interface com.guiseframework.model.InfoModel |
|---|
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY |
| Fields inherited from interface com.guiseframework.model.LabelModel |
|---|
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Model |
|---|
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE |
| Constructor Summary | |
|---|---|
DefaultInfoModel()
Default constructor. |
|
DefaultInfoModel(java.lang.String label)
Label constructor. |
|
DefaultInfoModel(java.lang.String label,
java.net.URI glyphURI)
Label and glyph URI constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
|
com.globalmentor.net.ContentType |
getDescriptionContentType()
|
java.lang.String |
getInfo()
|
com.globalmentor.net.ContentType |
getInfoContentType()
|
void |
setDescription(java.lang.String newDescription)
Sets the description text, such as might appear in a flyover. |
void |
setDescriptionContentType(com.globalmentor.net.ContentType newDescriptionContentType)
Sets the content type of the description text. |
void |
setInfo(java.lang.String newInfo)
Sets the advisory information text, such as might appear in a tooltip. |
void |
setInfoContentType(com.globalmentor.net.ContentType newInfoContentType)
Sets the content type of the advisory information text. |
| Methods inherited from class com.guiseframework.model.DefaultLabelModel |
|---|
getGlyphURI, getLabel, getLabelContentType, setGlyphURI, setLabel, setLabelContentType, toString |
| Methods inherited from class com.guiseframework.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 com.guiseframework.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 Detail |
|---|
public DefaultInfoModel()
public DefaultInfoModel(java.lang.String label)
label - The text of the label, or null if there should be no label.
public DefaultInfoModel(java.lang.String label,
java.net.URI glyphURI)
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 Detail |
|---|
public java.lang.String getDescription()
getDescription in interface InfoModelnull if there is no description.public void setDescription(java.lang.String newDescription)
setDescription in interface InfoModelnewDescription - The new text of the description, such as might appear in a flyover.InfoModel.DESCRIPTION_PROPERTYpublic com.globalmentor.net.ContentType getDescriptionContentType()
getDescriptionContentType in interface InfoModelpublic void setDescriptionContentType(com.globalmentor.net.ContentType newDescriptionContentType)
setDescriptionContentType in interface InfoModelnewDescriptionContentType - The new description text content type.
java.lang.NullPointerException - if the given content type is null.
java.lang.IllegalArgumentException - if the given content type is not a text content type.InfoModel.DESCRIPTION_CONTENT_TYPE_PROPERTYpublic java.lang.String getInfo()
getInfo in interface InfoModelnull if there is no advisory information.public void setInfo(java.lang.String newInfo)
setInfo in interface InfoModelnewInfo - The new text of the advisory information, such as might appear in a tooltip.InfoModel.INFO_PROPERTYpublic com.globalmentor.net.ContentType getInfoContentType()
getInfoContentType in interface InfoModelpublic void setInfoContentType(com.globalmentor.net.ContentType newInfoContentType)
setInfoContentType in interface InfoModelnewInfoContentType - The new advisory information text content type.
java.lang.NullPointerException - if the given content type is null.
java.lang.IllegalArgumentException - if the given content type is not a text content type.InfoModel.INFO_CONTENT_TYPE_PROPERTY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||