private class ParameterTable.DropdownEditor
extends javax.swing.DefaultCellEditor
implements java.awt.event.KeyListener
Modifier and Type | Field and Description |
---|---|
private javax.swing.JComboBox<java.lang.String> |
comboBox
Combo box to use
|
(package private) javax.swing.JPanel |
panel
We need a panel to ensure focusing.
|
private static long |
serialVersionUID
Serial Version
|
Constructor and Description |
---|
DropdownEditor(javax.swing.JComboBox<java.lang.String> comboBox)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column) |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
private static final long serialVersionUID
final javax.swing.JPanel panel
private final javax.swing.JComboBox<java.lang.String> comboBox
public DropdownEditor(javax.swing.JComboBox<java.lang.String> comboBox)
comboBox
- Combo box we're going to usepublic 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.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
getTableCellEditorComponent
in class javax.swing.DefaultCellEditor
Copyright © 2019 ELKI Development Team. License information.