info.joseluismartin.beans
Class ImagePropertyEditor
java.lang.Object
java.beans.PropertyEditorSupport
info.joseluismartin.beans.ImagePropertyEditor
- All Implemented Interfaces:
- PropertyEditor
public class ImagePropertyEditor
- extends PropertyEditorSupport
Property editor for set Images from String in Spring bean definition files
- Author:
- Jose Luis Martin - (jlm@joseluismartin.info)
| 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 |
ImagePropertyEditor
public ImagePropertyEditor()
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Load image from classpath
- Specified by:
setAsText in interface PropertyEditor- Overrides:
setAsText in class PropertyEditorSupport
- Parameters:
text - the classpath of image resource
- Throws:
IllegalArgumentException- See Also:
PropertyEditorSupport.setAsText(java.lang.String)
Copyright © 2012 JDAL. All Rights Reserved.