private class ParameterTable.FileNameEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor, java.awt.event.ActionListener, java.awt.event.KeyListener
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.JButton |
button
The button to open the file selector
|
(package private) java.lang.String |
defaultpath
Default path.
|
(package private) int |
mode
File selector mode.
|
(package private) javax.swing.JPanel |
panel
We need a panel to put our components on.
|
private static long |
serialVersionUID
Serial version number
|
(package private) javax.swing.JTextField |
textfield
Text field to store the name
|
Constructor and Description |
---|
FileNameEditor()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Button callback to show the file selector
|
java.lang.Object |
getCellEditorValue()
Delegate getCellEditorValue to the text field.
|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Apply the Editor for a selected option.
|
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
private static final long serialVersionUID
final javax.swing.JPanel panel
final javax.swing.JTextField textfield
final javax.swing.JButton button
int mode
java.lang.String defaultpath
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
Copyright © 2019 ELKI Development Team. License information.