|
|||||||||
| 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.AbstractValueModel<V>
com.guiseframework.model.DefaultValueModel<V>
com.guiseframework.prototype.ValuePrototype<V>
V - The type of value contained in the model.public class ValuePrototype<V>
Contains prototype information for a value control.
| 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 |
| Fields inherited from interface com.guiseframework.model.Enableable |
|---|
ENABLED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.ValueModel |
|---|
VALIDATOR_PROPERTY, VALUE_PROPERTY |
| Constructor Summary | |
|---|---|
ValuePrototype(java.lang.Class<V> valueClass)
Value class constructor with a null default value. |
|
ValuePrototype(java.lang.Class<V> valueClass,
java.lang.String label)
Value class and label constructor with a null default value. |
|
ValuePrototype(java.lang.Class<V> valueClass,
java.lang.String label,
java.net.URI icon)
Value class, label, and icon constructor with a null default value. |
|
ValuePrototype(java.lang.Class<V> valueClass,
V defaultValue)
Value class and default value constructor. |
|
ValuePrototype(java.lang.Class<V> valueClass,
V defaultValue,
java.lang.String label)
Value class, default value, and label constructor. |
|
ValuePrototype(java.lang.Class<V> valueClass,
V defaultValue,
java.lang.String label,
java.net.URI icon)
Value class, default value, label, and icon constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
|
com.globalmentor.net.ContentType |
getDescriptionContentType()
|
java.net.URI |
getGlyphURI()
|
java.lang.String |
getInfo()
|
com.globalmentor.net.ContentType |
getInfoContentType()
|
java.lang.String |
getLabel()
|
com.globalmentor.net.ContentType |
getLabelContentType()
|
boolean |
isEnabled()
|
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 |
setEnabled(boolean newEnabled)
Sets whether the control is enabled and and can receive user input. |
void |
setGlyphURI(java.net.URI newIcon)
Sets the URI of the icon. |
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. |
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 class com.guiseframework.model.DefaultValueModel |
|---|
clearValue, getDefaultValue, getValue, resetValue, setValue |
| Methods inherited from class com.guiseframework.model.AbstractValueModel |
|---|
createPropertyVetoException, getValidator, getValueClass, isValidValue, setValidator, validateValue |
| 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, toString, 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 ValuePrototype(java.lang.Class<V> valueClass)
null default value.
valueClass - The class indicating the type of value held in the model.
java.lang.NullPointerException - if the given value class is null.
public ValuePrototype(java.lang.Class<V> valueClass,
V defaultValue)
valueClass - The class indicating the type of value held in the model.defaultValue - The default value, which will not be validated.
java.lang.NullPointerException - if the given value class is null.
public ValuePrototype(java.lang.Class<V> valueClass,
java.lang.String label)
null default value.
valueClass - The class indicating the type of value held in the model.label - The text of the label, or null if there should be no label.
java.lang.NullPointerException - if the given value class is null.
public ValuePrototype(java.lang.Class<V> valueClass,
V defaultValue,
java.lang.String label)
valueClass - The class indicating the type of value held in the model.defaultValue - The default value, which will not be validated.label - The text of the label, or null if there should be no label.
java.lang.NullPointerException - if the given value class is null.
public ValuePrototype(java.lang.Class<V> valueClass,
java.lang.String label,
java.net.URI icon)
null default value.
valueClass - The class indicating the type of value held in the model.label - The text of the label, or null if there should be no label.icon - The icon URI, which may be a resource URI, or null if there is no icon URI.
java.lang.NullPointerException - if the given value class is null.
public ValuePrototype(java.lang.Class<V> valueClass,
V defaultValue,
java.lang.String label,
java.net.URI icon)
valueClass - The class indicating the type of value held in the model.defaultValue - The default value, which will not be validated.label - The text of the label, or null if there should be no label.icon - The icon URI, which may be a resource URI, or null if there is no icon URI.
java.lang.NullPointerException - if the given value class is null.| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface Enableablepublic void setEnabled(boolean newEnabled)
Boolean.
setEnabled in interface EnableablenewEnabled - true if the control should indicate and accept user input.Enableable.ENABLED_PROPERTYpublic java.net.URI getGlyphURI()
getGlyphURI in interface LabelModelnull if there is no icon URI.public void setGlyphURI(java.net.URI newIcon)
URI.
setGlyphURI in interface LabelModelnewIcon - The new URI of the icon, 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 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 | ||||||||