Package elki.gui.util
Class ParameterTable.ClassListEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- elki.gui.util.ParameterTable.ClassListEditor
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.event.KeyListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.CellEditor
,javax.swing.table.TableCellEditor
- Enclosing class:
- ParameterTable
private class ParameterTable.ClassListEditor extends javax.swing.AbstractCellEditor implements javax.swing.table.TableCellEditor, java.awt.event.ActionListener, java.awt.event.KeyListener
Editor for choosing classes.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JButton
button
The button to open the file selectorprivate javax.swing.tree.TreeModel
model
Tree modelprivate Parameter<?>
option
Parameter we are currently editing.(package private) javax.swing.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) javax.swing.JTextField
textfield
Text field to store the name
-
Constructor Summary
Constructors Constructor Description ClassListEditor()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
Callback to show the popup menujava.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)
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial version number- See Also:
- Constant Field Values
-
panel
final javax.swing.JPanel panel
We need a panel to put our components on.
-
textfield
final javax.swing.JTextField textfield
Text field to store the name
-
button
final javax.swing.JButton button
The button to open the file selector
-
popup
final TreePopup popup
The popup menu.
-
model
private javax.swing.tree.TreeModel model
Tree model
-
option
private Parameter<?> option
Parameter we are currently editing.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
Callback to show the popup menu- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
getCellEditorValue
public java.lang.Object getCellEditorValue()
Delegate getCellEditorValue to the text field.- Specified by:
getCellEditorValue
in interfacejavax.swing.CellEditor
-
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)
Apply the Editor for a selected option.- Specified by:
getTableCellEditorComponent
in interfacejavax.swing.table.TableCellEditor
-
-