Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

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

private class ParameterTable.AdjustingEditor
extends AbstractCellEditor
implements TableCellEditor

This Editor will adjust to the type of the Option: Sometimes just a plain text editor, sometimes a ComboBox to offer known choices, and sometime a file selector dialog. TODO: class list parameters etc.

Author:
Erich Schubert

Field Summary
private  TableCellEditor activeEditor
          We need to remember which editor we delegated to, so we know whom to ask for the value entered.
private  ParameterTable.DropdownEditor dropdownEditor
          The dropdown editor
private  ParameterTable.FileNameEditor fileNameEditor
          The file selector editor
private  DefaultCellEditor plaintextEditor
          The plain text cell editor
private static long serialVersionUID
          Serial version
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ParameterTable.AdjustingEditor()
          Constructor.
 
Method Summary
 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

serialVersionUID

private static final long serialVersionUID
Serial version

See Also:
Constant Field Values

dropdownEditor

private final ParameterTable.DropdownEditor dropdownEditor
The dropdown editor


plaintextEditor

private final DefaultCellEditor plaintextEditor
The plain text cell editor


fileNameEditor

private final ParameterTable.FileNameEditor fileNameEditor
The file selector editor


activeEditor

private TableCellEditor activeEditor
We need to remember which editor we delegated to, so we know whom to ask for the value entered.

Constructor Detail

ParameterTable.AdjustingEditor

public ParameterTable.AdjustingEditor()
Constructor.

Method Detail

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

Release 0.3 (2010-03-31_1612)