org.jurvis.beans.editors
Class IconEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.jurvis.beans.editors.IconEditor
- All Implemented Interfaces:
- PropertyEditor
public class IconEditor
- extends PropertyEditorSupport
A PropertyEditor for converting back and forth between a
String and an Icon.
|
Method Summary |
void |
setAsText(String text)
Sets the property value by parsing a given String. |
| Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, 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 |
IconEditor
public IconEditor()
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Sets the property value by parsing a given String. May raise
java.lang.IllegalArgumentException if either the String is
badly formatted or if this kind of property can't be expressed
as text.
- Specified by:
setAsText in interface PropertyEditor- Overrides:
setAsText in class PropertyEditorSupport
- Parameters:
text - The string to be parsed.
- Throws:
IllegalArgumentException
Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.