info.joseluismartin.beans
Class ImagePropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by 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)

Constructor Summary
ImagePropertyEditor()
           
 
Method Summary
 void setAsText(String text)
          Load image from classpath
 
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
 

Constructor Detail

ImagePropertyEditor

public ImagePropertyEditor()
Method Detail

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.