info.joseluismartin.beans
Class IconPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by info.joseluismartin.beans.IconPropertyEditor
All Implemented Interfaces:
PropertyEditor

public class IconPropertyEditor
extends PropertyEditorSupport

PropertyEditor for javax.swing.Icon

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Constructor Summary
IconPropertyEditor()
           
 
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

IconPropertyEditor

public IconPropertyEditor()
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.