private class ParameterTable.ClassListEditor extends AbstractCellEditor implements TableCellEditor, ActionListener, KeyListener
Modifier and Type | Field and Description |
---|---|
(package private) JButton |
button
The button to open the file selector
|
private TreeModel |
model
Tree model
|
private Parameter<?> |
option
Parameter we are currently editing.
|
(package private) JPanel |
panel
We need a panel to put our components on.
|
(package private) TreePopup |
popup
The popup menu.
|
private static long |
serialVersionUID
Serial version number
|
(package private) JTextField |
textfield
Text field to store the name
|
changeEvent, listenerList
Constructor and Description |
---|
ParameterTable.ClassListEditor()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Callback to show the popup menu
|
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
final TreePopup popup
private TreeModel model
private Parameter<?> option
public ParameterTable.ClassListEditor()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
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 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.