JClass DesktopViews 6.3.0 API
Documentation

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.


Constructor Summary
ColorEditor()
           
 
Method Summary
protected  boolean eqColor(Color col1, Color col2)
           
 JFrame findParent()
           
 String getAsText()
           
 String getJavaInitializationString()
           
 String[] getTags()
           
 void setAsText(String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorEditor

public ColorEditor()
Method Detail

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()

Copyright © 2004 Quest Software Inc..
All rights reserved.