Package elki.gui.util
Class ParameterTable.AdjustingEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- elki.gui.util.ParameterTable.AdjustingEditor
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.CellEditor
,javax.swing.table.TableCellEditor
- Enclosing class:
- ParameterTable
private class ParameterTable.AdjustingEditor extends javax.swing.AbstractCellEditor implements javax.swing.table.TableCellEditor
This Editor will adjust to the type of the Option: Sometimes just a plain text editor, sometimes a ComboBox to offer known choices, and sometime a file selector dialog.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.table.TableCellEditor
activeEditor
We need to remember which editor we delegated to, so we know whom to ask for the value entered.private ParameterTable.ClassListEditor
classListEditor
The class list editorprivate ParameterTable.DropdownEditor
dropdownEditor
The dropdown editorprivate ParameterTable.FileNameEditor
fileNameEditor
The file selector editorprivate javax.swing.DefaultCellEditor
plaintextEditor
The plain text cell editorprivate static long
serialVersionUID
Serial version
-
Constructor Summary
Constructors Constructor Description AdjustingEditor()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getCellEditorValue()
java.awt.Component
getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
-
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- See Also:
- Constant Field Values
-
dropdownEditor
private final ParameterTable.DropdownEditor dropdownEditor
The dropdown editor
-
plaintextEditor
private final javax.swing.DefaultCellEditor plaintextEditor
The plain text cell editor
-
classListEditor
private final ParameterTable.ClassListEditor classListEditor
The class list editor
-
fileNameEditor
private final ParameterTable.FileNameEditor fileNameEditor
The file selector editor
-
activeEditor
private javax.swing.table.TableCellEditor activeEditor
We need to remember which editor we delegated to, so we know whom to ask for the value entered.
-
-
Method Detail
-
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfacejavax.swing.CellEditor
-
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
-
-