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.JButtonbuttonThe button to open the file selector(package private) javax.swing.JPanelpanelThe panel to store the components(package private) javax.swing.JTextFieldtextfieldText 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 voidactionPerformed(java.awt.event.ActionEvent e)Button callback to show the file selectorjava.lang.StringgetUserInput()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:
actionPerformedin interfacejava.awt.event.ActionListener
-
getUserInput
public java.lang.String getUserInput()
Description copied from class:AbstractParameterConfiguratorGet the value given by the user.- Specified by:
getUserInputin classAbstractParameterConfigurator<FileParameter>- Returns:
- value for parameter
-
-