|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.beans.PropertyEditorSupport atg.beans.TaggedPropertyEditor
public class TaggedPropertyEditor
A PropertyEditor implementation that wraps an existing PropertyEditor but adds the ability to map text values to/from a set of allowed tag values.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
TaggedPropertyEditor(java.lang.String[] pTags)
Construct a TaggedPropertyEditor that edits Strings accepts a given set of tags that *are* the underlying property values. |
|
TaggedPropertyEditor(java.lang.String[] pTags,
java.lang.Object pTagValues)
Construct a TaggedPropertyEditor that maps between the given set of tags and underlying property values, assuming that there is already a non-tagged editor. |
Method Summary | |
---|---|
java.lang.String |
getAsText()
|
java.lang.String[] |
getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tags. |
void |
setAsText(java.lang.String text)
Set the property value by parsing a given String. |
Methods inherited from class java.beans.PropertyEditorSupport |
---|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public TaggedPropertyEditor(java.lang.String[] pTags, java.lang.Object pTagValues)
public TaggedPropertyEditor(java.lang.String[] pTags)
Method Detail |
---|
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport
Returns null if the value can't be expressed as an editable string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
public void setAsText(java.lang.String text) throws java.lang.IllegalArgumentException
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
text
- The string to be parsed.
java.lang.IllegalArgumentException
public java.lang.String[] getTags()
getTags
in interface java.beans.PropertyEditor
getTags
in class java.beans.PropertyEditorSupport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |