com.klg.jclass.table.beans
Class ColorEditor
java.lang.Object
|
+--java.beans.PropertyEditorSupport
|
+--com.klg.jclass.table.beans.ColorEditor
- All Implemented Interfaces:
- PropertyEditor
- Direct Known Subclasses:
- FocusRectColorEditor, SelectedBackgroundColorEditor, SelectedForegroundColorEditor
- public class ColorEditor
- extends PropertyEditorSupport
Custom property editor for java.awt.Color-type properties.
Allows selection of color from a list, or more detailed
color specification using a launchable color chooser.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorEditor
public ColorEditor()
getTags
public String[] getTags()
- Specified by:
getTags
in interface PropertyEditor
- Overrides:
getTags
in class PropertyEditorSupport
setAsText
public void setAsText(String text)
throws IllegalArgumentException
- Specified by:
setAsText
in interface PropertyEditor
- Overrides:
setAsText
in class PropertyEditorSupport
IllegalArgumentException
eqColor
protected boolean eqColor(Color col1,
Color col2)
getAsText
public String getAsText()
- Specified by:
getAsText
in interface PropertyEditor
- Overrides:
getAsText
in class PropertyEditorSupport
getJavaInitializationString
public String getJavaInitializationString()
- Specified by:
getJavaInitializationString
in interface PropertyEditor
- Overrides:
getJavaInitializationString
in class PropertyEditorSupport
findParent
public JFrame findParent()