ucar.unidata.idv.control
Class ProbeControl.LevelEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by ucar.unidata.idv.control.ProbeControl.LevelEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor, TreeCellEditor
Enclosing class:
ProbeControl

public class ProbeControl.LevelEditor
extends DefaultCellEditor

Class LevelEditor, used for selecting levels in table column

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
 
Field Summary
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ProbeControl.LevelEditor()
          New editor, create as a combo box
 
Method Summary
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int rowIndex, int vColIndex)
          Get the component for editing the levels
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, 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
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Constructor Detail

ProbeControl.LevelEditor

public ProbeControl.LevelEditor()
New editor, create as a combo box

Method Detail

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int rowIndex,
                                             int vColIndex)
Get the component for editing the levels

Specified by:
getTableCellEditorComponent in interface TableCellEditor
Overrides:
getTableCellEditorComponent in class DefaultCellEditor
Parameters:
table - the JTable
value - the value
isSelected - flag for selection
rowIndex - row index
vColIndex - column index.
Returns:
the editing component