edu.wisc.ssec.mcidasv.control
Class MultiSpectralControl.ColorEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by edu.wisc.ssec.mcidasv.control.MultiSpectralControl.ColorEditor
All Implemented Interfaces:
ActionListener, Serializable, EventListener, CellEditor, TableCellEditor
Enclosing class:
MultiSpectralControl

public class MultiSpectralControl.ColorEditor
extends AbstractCellEditor
implements TableCellEditor, ActionListener

See Also:
Serialized Form

Field Summary
private  JButton button
           
private  JColorChooser colorChooser
           
private  Color currentColor
           
private  JDialog dialog
           
protected static String EDIT
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
MultiSpectralControl.ColorEditor()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 Object getCellEditorValue()
           
 Component getTableCellEditorComponent(JTable table, 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

currentColor

private Color currentColor

button

private final JButton button

colorChooser

private final JColorChooser colorChooser

dialog

private JDialog dialog

EDIT

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

MultiSpectralControl.ColorEditor

public MultiSpectralControl.ColorEditor()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getCellEditorValue

public Object getCellEditorValue()
Specified by:
getCellEditorValue in interface CellEditor

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Specified by:
getTableCellEditorComponent in interface TableCellEditor