private class ParameterTable.FileNameEditor extends AbstractCellEditor implements TableCellEditor, ActionListener, KeyListener
Modifier and Type | Field and Description |
---|---|
(package private) JButton |
button
The button to open the file selector
|
(package private) String |
defaultpath
Default path.
|
(package private) int |
mode
File selector mode.
|
(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
|
changeEvent, listenerList
Constructor and Description |
---|
ParameterTable.FileNameEditor()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
private static final long serialVersionUID
final JPanel panel
final JTextField textfield
final JButton button
int mode
String defaultpath
public ParameterTable.FileNameEditor()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.