de.lmu.ifi.dbs.elki.gui.util
Class ParameterTable.DropdownEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by de.lmu.ifi.dbs.elki.gui.util.ParameterTable.DropdownEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor, TreeCellEditor
Enclosing class:
ParameterTable

private class ParameterTable.DropdownEditor
extends DefaultCellEditor

Editor using a Dropdown box to offer known values to choose from.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
 
Field Summary
private  JComboBox comboBox
          Combo box to use
private static long serialVersionUID
          Serial Version
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ParameterTable.DropdownEditor(JComboBox comboBox)
          Constructor.
 
Method Summary
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version

See Also:
Constant Field Values

comboBox

private final JComboBox comboBox
Combo box to use

Constructor Detail

ParameterTable.DropdownEditor

public ParameterTable.DropdownEditor(JComboBox comboBox)
Constructor.

Parameters:
comboBox - Combo box we're going to use
Method Detail

getTableCellEditorComponent

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

Release 0.4.0 (2011-09-20_1324)