|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TextModel
A model for text and an associated label. This model only supports text content types, including:
text/*application/xmlapplication/*+xmlThe model defaults to a content type of text/plain.
| Field Summary | |
|---|---|
static java.lang.String |
TEXT_CONTENT_TYPE_PROPERTY
The text content type bound property. |
static java.lang.String |
TEXT_PROPERTY
The text bound property. |
| Fields inherited from interface com.guiseframework.model.Model |
|---|
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE |
| Method Summary | |
|---|---|
java.lang.String |
getText()
|
com.globalmentor.net.ContentType |
getTextContentType()
|
void |
setText(java.lang.String newText)
Sets the text. |
void |
setTextContentType(com.globalmentor.net.ContentType newTextContentType)
Sets the content type of the 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 |
|---|
static final java.lang.String TEXT_CONTENT_TYPE_PROPERTY
static final java.lang.String TEXT_PROPERTY
| Method Detail |
|---|
java.lang.String getText()
null if there is no text.void setText(java.lang.String newText)
newText - The new text, which may include a resource reference.TEXT_PROPERTYcom.globalmentor.net.ContentType getTextContentType()
void setTextContentType(com.globalmentor.net.ContentType newTextContentType)
newTextContentType - The new 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.TEXT_CONTENT_TYPE_PROPERTY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||