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

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

private class ParameterTable.FileNameEditor
extends AbstractCellEditor
implements TableCellEditor, ActionListener

Editor for selecting input and output file and folders names


Field Summary
(package private)  JButton button
          The button to open the file selector
(package private)  JFileChooser fc
          The actual file chooser
(package private)  JPanel panel
          We need a panel to put our components on.
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.FileNameEditor()
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Button callback to show the file selector
 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


fc

final JFileChooser fc
The actual file chooser

Constructor Detail

ParameterTable.FileNameEditor

public ParameterTable.FileNameEditor()
Constructor.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Button callback to show the file selector

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)