org.escot
Interface StringProperty

All Superinterfaces:
EscotFeature
All Known Implementing Classes:
BasicString

public interface StringProperty
extends EscotFeature

A string data type which supports change notification.


Field Summary
static String MIME_TYPE_ATTRIBUTE
          f present, mime type of string
static String URL_ATTRIBUTE
          if present, this string is a URL
 
Fields inherited from interface org.escot.EscotFeature
COLOR_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, ICON16x16_ATTRIBUTE, TYPE_ATTRIBUTE
 
Method Summary
 void addChangeListener(ChangeListener l)
          adds a change listener to this StringProperty, to be notified when the String changes.
 String getTextValue()
          gets the String this StringProperty represents.
 void removeChangeListener(ChangeListener l)
          removes a change listener to this StringProperty
 
Methods inherited from interface org.escot.EscotFeature
addPropertyChangeListener, duplicate, getAttribute, getName, putAttribute, removePropertyChangeListener
 

Field Detail

URL_ATTRIBUTE

public static final String URL_ATTRIBUTE
if present, this string is a URL

MIME_TYPE_ATTRIBUTE

public static final String MIME_TYPE_ATTRIBUTE
f present, mime type of string
Method Detail

getTextValue

public String getTextValue()
gets the String this StringProperty represents.
Returns:
the String for this StringProperty

addChangeListener

public void addChangeListener(ChangeListener l)
adds a change listener to this StringProperty, to be notified when the String changes.
Parameters:
l - a ChangeListener that wants to be notified of changes to this StringProperty

removeChangeListener

public void removeChangeListener(ChangeListener l)
removes a change listener to this StringProperty
Parameters:
l - a ChangeListener that no longer wants to listen to change events from this StringProperty