
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, stopCellEditingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingprivate 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 ActionListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.