|
|||||||||
| 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
public class DefaultLabelModel
A default implementation of a model for an identifier such as text and/or an icon.
| 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.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 | |
|---|---|
DefaultLabelModel()
Default constructor. |
|
DefaultLabelModel(java.lang.String label)
Label constructor. |
|
DefaultLabelModel(java.lang.String label,
java.net.URI glyphURI)
Label and glyph URI constructor. |
|
| Method Summary | |
|---|---|
java.net.URI |
getGlyphURI()
|
java.lang.String |
getLabel()
|
com.globalmentor.net.ContentType |
getLabelContentType()
|
void |
setGlyphURI(java.net.URI newGlyphURI)
Sets the URI of the glyph. |
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. |
java.lang.String |
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.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 DefaultLabelModel()
public DefaultLabelModel(java.lang.String label)
label - The text of the label, or null if there should be no label.
public DefaultLabelModel(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.net.URI getGlyphURI()
getGlyphURI in interface LabelModelnull if there is no glyph URI.public void setGlyphURI(java.net.URI newGlyphURI)
setGlyphURI in interface LabelModelnewGlyphURI - The new URI of the glyph, which may be a resource URI.LabelModel.GLYPH_URI_PROPERTYpublic java.lang.String getLabel()
getLabel in interface LabelModelnull if there is no label text.public void setLabel(java.lang.String newLabelText)
setLabel in interface LabelModelnewLabelText - The new text of the label, which may include a resource reference.LabelModel.LABEL_PROPERTYpublic com.globalmentor.net.ContentType getLabelContentType()
getLabelContentType in interface LabelModelpublic void setLabelContentType(com.globalmentor.net.ContentType newLabelTextContentType)
setLabelContentType in interface LabelModelnewLabelTextContentType - The new label 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.LabelModel.LABEL_CONTENT_TYPE_PROPERTYpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||