org.jdesktop.swingx.editors
Class PainterPropertyEditor
java.lang.Object
  
java.beans.PropertyEditorSupport
      
org.jdesktop.swingx.editors.PainterPropertyEditor
- All Implemented Interfaces: 
 - PropertyEditor
 
public class PainterPropertyEditor
- extends PropertyEditorSupport
 
Two parts to this property editor. The first part is a simple dropdown.
 The second part is a complicated UI for constructing multiple "layers" of
 various different Painters, including gradient painters.
 
 
 
| Methods inherited from class java.beans.PropertyEditorSupport | 
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue, supportsCustomEditor | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PainterPropertyEditor
public PainterPropertyEditor()
- Creates a new instance of PainterPropertyEditor
 
getValue
public Painter getValue()
- Description copied from class: 
java.beans.PropertyEditorSupport 
- Gets the value of the property.
- Specified by:
 getValue in interface PropertyEditor- Overrides:
 getValue in class PropertyEditorSupport
 
- Returns:
 - The value of the property.
 
 
 
getJavaInitializationString
public String getJavaInitializationString()
- Description copied from class: 
java.beans.PropertyEditorSupport 
- This method is intended for use when generating Java code to set
 the value of the property.  It should return a fragment of Java code
 that can be used to initialize a variable with the current property
 value.
 
 Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
- Specified by:
 getJavaInitializationString in interface PropertyEditor- Overrides:
 getJavaInitializationString in class PropertyEditorSupport
 
- Returns:
 - A fragment of Java code representing an initializer for the
        current value.
 
 
 
main
public static void main(String... args)