org.ocd.dcf.property.editor
Class ColorEditor
java.lang.Object
|
+--java.beans.PropertyEditorSupport
|
+--org.ocd.dcf.property.editor.EditorSupport
|
+--org.ocd.dcf.property.editor.ColorEditor
- All Implemented Interfaces:
- java.beans.PropertyEditor
- public class ColorEditor
- extends EditorSupport
Swing version of a Color property editor.
- Version:
- $Revision: 1.1 $
- Author:
- Tom Santos, Mark Davidson
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getTags, getValue, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorEditor
public ColorEditor()
isPaintable
public boolean isPaintable()
- Overrides:
isPaintable
in class java.beans.PropertyEditorSupport
paintValue
public void paintValue(java.awt.Graphics g,
java.awt.Rectangle rect)
- Paints a representation of the value into a given area of screen.
- Overrides:
paintValue
in class java.beans.PropertyEditorSupport
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- Overrides:
getJavaInitializationString
in class java.beans.PropertyEditorSupport
getAsText
public java.lang.String getAsText()
- Overrides:
getAsText
in class java.beans.PropertyEditorSupport
setAsText
public void setAsText(java.lang.String s)
throws java.lang.IllegalArgumentException
- Overrides:
setAsText
in class java.beans.PropertyEditorSupport
setValue
public void setValue(java.lang.Object value)
- Description copied from class:
EditorSupport
- Set the Value of this Property
- Overrides:
setValue
in class EditorSupport
- Following copied from class:
org.ocd.dcf.property.editor.EditorSupport
- Parameters:
pValue
- new Value
editorChangeValue
public void editorChangeValue(java.lang.Object value)
getColorEditor
public ColorEditor getColorEditor()
main
public static void main(java.lang.String[] argv)