de.lmu.ifi.dbs.elki.gui.configurator
Class FileParameterConfigurator

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.gui.configurator.AbstractParameterConfigurator<T>
      extended by de.lmu.ifi.dbs.elki.gui.configurator.AbstractSingleParameterConfigurator<FileParameter>
          extended by de.lmu.ifi.dbs.elki.gui.configurator.FileParameterConfigurator
All Implemented Interfaces:
ParameterConfigurator, ActionListener, EventListener

public class FileParameterConfigurator
extends AbstractSingleParameterConfigurator<FileParameter>
implements ActionListener

Provide a configuration panel to choose a file with a file selector button.


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
          The panel to store the components
(package private)  JTextField textfield
          Text field to store the name
 
Fields inherited from class de.lmu.ifi.dbs.elki.gui.configurator.AbstractSingleParameterConfigurator
label
 
Fields inherited from class de.lmu.ifi.dbs.elki.gui.configurator.AbstractParameterConfigurator
listenerList, param, parent
 
Constructor Summary
FileParameterConfigurator(FileParameter fp, JComponent parent)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Button callback to show the file selector
 String getUserInput()
          Get the value given by the user.
 
Methods inherited from class de.lmu.ifi.dbs.elki.gui.configurator.AbstractParameterConfigurator
addChangeListener, addParameter, appendParameters, finishGridRow, fireValueChanged, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

panel

final JPanel panel
The panel to store the components


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

FileParameterConfigurator

public FileParameterConfigurator(FileParameter fp,
                                 JComponent parent)
Method Detail

actionPerformed

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

Specified by:
actionPerformed in interface ActionListener

getUserInput

public String getUserInput()
Description copied from class: AbstractParameterConfigurator
Get the value given by the user.

Specified by:
getUserInput in class AbstractParameterConfigurator<FileParameter>
Returns:
value for parameter

Release 0.4.0 (2011-09-20_1324)