swingx
Version 2009-07-31

org.jdesktop.swingx.editors
Class Paint2PropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.jdesktop.swingx.editors.Paint2PropertyEditor
All Implemented Interfaces:
PropertyEditor

public class Paint2PropertyEditor
extends PropertyEditorSupport


Constructor Summary
Paint2PropertyEditor()
          Creates a new instance of Paint2PropertyEditor
 
Method Summary
 String getAsText()
           
 Component getCustomEditor()
           
 String getJavaInitializationString()
           
 Paint getValue()
           
 boolean isPaintable()
           
 void paintValue(Graphics g, Rectangle box)
           
 void setAsText(String text)
           
 void setValue(Object object)
           
 boolean supportsCustomEditor()
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getSource, getTags, removePropertyChangeListener, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paint2PropertyEditor

public Paint2PropertyEditor()
Creates a new instance of Paint2PropertyEditor

Method Detail

getValue

public Paint getValue()
Specified by:
getValue in interface PropertyEditor
Overrides:
getValue in class PropertyEditorSupport

setValue

public void setValue(Object object)
Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class PropertyEditorSupport

getJavaInitializationString

public String getJavaInitializationString()
Specified by:
getJavaInitializationString in interface PropertyEditor
Overrides:
getJavaInitializationString in class PropertyEditorSupport

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

paintValue

public void paintValue(Graphics g,
                       Rectangle box)
Specified by:
paintValue in interface PropertyEditor
Overrides:
paintValue in class PropertyEditorSupport

isPaintable

public boolean isPaintable()
Specified by:
isPaintable in interface PropertyEditor
Overrides:
isPaintable in class PropertyEditorSupport

supportsCustomEditor

public boolean supportsCustomEditor()
Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport

getCustomEditor

public Component getCustomEditor()
Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport

swingx
Version 2009-07-31