bsys.propertyview
Class ColorEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by bsys.propertyview.ColorEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor

 class ColorEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor

Color editor

Author:
Bernard Bou

Field Summary
private static long serialVersionUID
           
private  javax.swing.JButton theButton
          Button (editor component)
private  javax.swing.JColorChooser theColorChooser
          Color chooser
private  javax.swing.JDialog theColorDialog
          Wrapping color dialog
private  java.awt.Color theCurrentColor
          Color being edited
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ColorEditor()
          Constructor
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object thisValue, boolean isSelected, int row, int column)
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

theCurrentColor

private java.awt.Color theCurrentColor
Color being edited


theButton

private javax.swing.JButton theButton
Button (editor component)


theColorChooser

private javax.swing.JColorChooser theColorChooser
Color chooser


theColorDialog

private javax.swing.JDialog theColorDialog
Wrapping color dialog

Constructor Detail

ColorEditor

public ColorEditor()
Constructor

Method Detail

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object thisValue,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor