public class TextDescriptor extends DefaultDescriptor
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_TEXT |
PROPERTY_IDpropertyChangeSupport| Constructor and Description |
|---|
TextDescriptor()
Constructs a new text descriptor.
|
TextDescriptor(String text)
Constructs a new text descriptor with a given text.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Accepts a visitor.
|
String |
getName() |
String |
getText()
Returns the textual description.
|
void |
setText(String text)
Sets the text description.
|
String |
toString() |
getTypegetId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic static final String PROPERTY_TEXT
public TextDescriptor()
public TextDescriptor(String text)
text - the textual description.public void setText(String text)
text - the textual description to be added.public String getText()
public void accept(Visitor visitor)
accept in interface DataObjectaccept in class DefaultDataObjectvisitor - the visitor to be used.public String getName()
getName in class DefaultDescriptorCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.