Class CSSCellEditor

java.lang.Object
javax.swing.AbstractCellEditor
org.bzdev.swing.CSSCellEditor
All Implemented Interfaces:
ActionListener, Serializable, EventListener, CellEditor, TableCellEditor, TreeCellEditor

public class CSSCellEditor extends AbstractCellEditor implements TableCellEditor, TreeCellEditor, ActionListener
Table cell editor for CSS color specifications. The color is stored in a table as text, but will be edited using a color chooser. The color chooser can use CSS named colors if desired. An example of when this class might be used is when an instance of ConfigPropertyEditor includes entries providing colors: while a color should be displayed, it has to be stored as text for the property editor to save its configuration.

The code is based on an example in the Java swing tutorial.

See Also: