insensa.view.image.map
Class ColorEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by insensa.view.image.map.ColorEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener, javax.swing.CellEditor, javax.swing.table.TableCellEditor

public class ColorEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor, java.awt.event.ActionListener

See Also:
Serialized Form

Field Summary
(package private)  javax.swing.JButton button
           
(package private)  javax.swing.JColorChooser colorChooser
           
(package private)  java.awt.Color currentColor
           
(package private)  javax.swing.JDialog dialog
           
protected static java.lang.String EDIT
           
private static long serialVersionUID
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ColorEditor()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handles events from the editor button and from the dialog's OK button.
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, 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

currentColor

java.awt.Color currentColor

button

javax.swing.JButton button

colorChooser

javax.swing.JColorChooser colorChooser

dialog

javax.swing.JDialog dialog

EDIT

protected static final java.lang.String EDIT
See Also:
Constant Field Values
Constructor Detail

ColorEditor

public ColorEditor()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Handles events from the editor button and from the dialog's OK button.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e -

getCellEditorValue

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

getTableCellEditorComponent

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