Package elki.gui.util
Class ParameterTable.DropdownEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- elki.gui.util.ParameterTable.DropdownEditor
-
- All Implemented Interfaces:
java.awt.event.KeyListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.CellEditor
,javax.swing.table.TableCellEditor
,javax.swing.tree.TreeCellEditor
- Enclosing class:
- ParameterTable
private class ParameterTable.DropdownEditor extends javax.swing.DefaultCellEditor implements java.awt.event.KeyListener
Editor using a Dropdown box to offer known values to choose from.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description DropdownEditor(javax.swing.JComboBox<java.lang.String> comboBox)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial Version- See Also:
- Constant Field Values
-
panel
final javax.swing.JPanel panel
We need a panel to ensure focusing.
-
comboBox
private final javax.swing.JComboBox<java.lang.String> comboBox
Combo box to use
-
-
Method Detail
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped
in interfacejava.awt.event.KeyListener
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed
in interfacejava.awt.event.KeyListener
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased
in interfacejava.awt.event.KeyListener
-
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponent
in interfacejavax.swing.table.TableCellEditor
- Overrides:
getTableCellEditorComponent
in classjavax.swing.DefaultCellEditor
-
-