org.favabeans.views
Class TaggedPropertyEditor
java.lang.Object
|
+--org.favabeans.views.TaggedPropertyEditor
- All Implemented Interfaces:
- PropertyEditor
- public class TaggedPropertyEditor
- extends Object
- implements PropertyEditor
This is a simple PropertyEditor
for editing the value
of tagged properties.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaggedPropertyEditor
public TaggedPropertyEditor(String[] tags,
int valueIndex)
- Create a new
TaggedPropertyEditor
- Parameters:
tags
- the bounded set of values that the property may
take on.valueIndex
- the index into tags
representing
the current value of the property.
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener
in interface PropertyEditor
getAsText
public String getAsText()
- Specified by:
getAsText
in interface PropertyEditor
getCustomEditor
public Component getCustomEditor()
- Specified by:
getCustomEditor
in interface PropertyEditor
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interface PropertyEditor
getTags
public String[] getTags()
- Specified by:
getTags
in interface PropertyEditor
getValue
public Object getValue()
- Specified by:
getValue
in interface PropertyEditor
isPaintable
public boolean isPaintable()
- Specified by:
isPaintable
in interface PropertyEditor
paintValue
public void paintValue(Graphics gfx,
Rectangle box)
- Specified by:
paintValue
in interface PropertyEditor
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener
in interface PropertyEditor
setAsText
public void setAsText(String text)
- Specified by:
setAsText
in interface PropertyEditor
setValue
public void setValue(Object value)
- Specified by:
setValue
in interface PropertyEditor
supportsCustomEditor
public boolean supportsCustomEditor()
- Specified by:
supportsCustomEditor
in interface PropertyEditor
Copyright © 2000-2001, Regents of the University of Minnesota. All Rights Reserved.