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

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

private class ParameterTable.ClassListEditor
extends AbstractCellEditor
implements TableCellEditor, ActionListener

Editor for selecting input and output file and folders names


Nested Class Summary
(package private)  class ParameterTable.ClassListEditor.SuperPopup
          Modified popup
 
Field Summary
(package private)  JButton button
          The button to open the file selector
(package private)  JComboBox combo
          The combobox we are abusing to produce the popup
(package private)  JPanel panel
          We need a panel to put our components on.
(package private)  ParameterTable.ClassListEditor.SuperPopup popup
          The popup menu.
private static long serialVersionUID
          Serial version number
(package private)  JTextField textfield
          Text field to store the name
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ParameterTable.ClassListEditor()
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Callback to show the popup menu
 Object getCellEditorValue()
          Delegate getCellEditorValue to the text field.
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
          Apply the Editor for a selected option.
 
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 number

See Also:
Constant Field Values

panel

final JPanel panel
We need a panel to put our components on.


textfield

final JTextField textfield
Text field to store the name


button

final JButton button
The button to open the file selector


combo

final JComboBox combo
The combobox we are abusing to produce the popup


popup

final ParameterTable.ClassListEditor.SuperPopup popup
The popup menu.

Constructor Detail

ParameterTable.ClassListEditor

public ParameterTable.ClassListEditor()
Constructor.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Callback to show the popup menu

Specified by:
actionPerformed in interface ActionListener

getCellEditorValue

public Object getCellEditorValue()
Delegate getCellEditorValue to the text field.

Specified by:
getCellEditorValue in interface CellEditor

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Apply the Editor for a selected option.

Specified by:
getTableCellEditorComponent in interface TableCellEditor

Release 0.4.0 (2011-09-20_1324)