Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.dods.gui.table
Class DOTableComboEditor  view DOTableComboEditor download DOTableComboEditor.java

java.lang.Object
  extended byjavax.swing.AbstractCellEditor
      extended byjavax.swing.DefaultCellEditor
          extended bycom.lutris.dods.gui.table.DOTableComboEditor
All Implemented Interfaces:
java.awt.event.ActionListener, javax.swing.CellEditor, java.util.EventListener, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor

public final class DOTableComboEditor
extends javax.swing.DefaultCellEditor
implements java.awt.event.ActionListener

This class is the editor which shows a dropdown list of choices for that cell. It is currently only used for one column.

Version:
$Revision: 1.10 $

Nested Class Summary
 
Nested classes inherited from class javax.swing.DefaultCellEditor
javax.swing.DefaultCellEditor.EditorDelegate
 
Field Summary
private  int column
           
private  javax.swing.JComboBox editor
           
private  javax.swing.JTable table
           
private  javax.swing.JTree tree
           
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
DOTableComboEditor(com.lutris.dods.gui.DataObjectApplication doa, javax.swing.JTree tree, javax.swing.JTable table, int column)
          The constructor initializes the combo box given all of the parameters which define where the column and cells are.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          When a new value is chosen, this method tells the cell to stop editing
 javax.swing.JComboBox getEditor()
           
 void initializeEditor(int col)
          This method sets which items are in the list of choices.
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
 
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, removeCellEditorListener
 

Field Detail

editor

private javax.swing.JComboBox editor

table

private javax.swing.JTable table

column

private int column

tree

private javax.swing.JTree tree
Constructor Detail

DOTableComboEditor

public DOTableComboEditor(com.lutris.dods.gui.DataObjectApplication doa,
                          javax.swing.JTree tree,
                          javax.swing.JTable table,
                          int column)
The constructor initializes the combo box given all of the parameters which define where the column and cells are.

Method Detail

initializeEditor

public void initializeEditor(int col)
This method sets which items are in the list of choices.


getEditor

public javax.swing.JComboBox getEditor()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
When a new value is chosen, this method tells the cell to stop editing

Specified by:
actionPerformed in interface java.awt.event.ActionListener