Package elki.gui.configurator
Class FileParameterConfigurator
- java.lang.Object
-
- elki.gui.configurator.AbstractParameterConfigurator<T>
-
- elki.gui.configurator.AbstractSingleParameterConfigurator<FileParameter>
-
- elki.gui.configurator.FileParameterConfigurator
-
- All Implemented Interfaces:
ParameterConfigurator
,java.awt.event.ActionListener
,java.util.EventListener
public class FileParameterConfigurator extends AbstractSingleParameterConfigurator<FileParameter> implements java.awt.event.ActionListener
Provide a configuration panel to choose a file with a file selector button.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JButton
button
The button to open the file selector(package private) javax.swing.JPanel
panel
The panel to store the components(package private) javax.swing.JTextField
textfield
Text field to store the name-
Fields inherited from class elki.gui.configurator.AbstractSingleParameterConfigurator
label
-
Fields inherited from class elki.gui.configurator.AbstractParameterConfigurator
listenerList, param, parent
-
-
Constructor Summary
Constructors Constructor Description FileParameterConfigurator(FileParameter fp, javax.swing.JComponent parent)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
Button callback to show the file selectorjava.lang.String
getUserInput()
Get the value given by the user.-
Methods inherited from class elki.gui.configurator.AbstractParameterConfigurator
addChangeListener, addParameter, appendParameters, finishGridRow, fireValueChanged, removeChangeListener
-
-
-
-
Constructor Detail
-
FileParameterConfigurator
public FileParameterConfigurator(FileParameter fp, javax.swing.JComponent parent)
Constructor.- Parameters:
fp
- File parameterparent
- Component to attach to.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Button callback to show the file selector- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
getUserInput
public java.lang.String getUserInput()
Description copied from class:AbstractParameterConfigurator
Get the value given by the user.- Specified by:
getUserInput
in classAbstractParameterConfigurator<FileParameter>
- Returns:
- value for parameter
-
-