Package elki.gui.util

Class ParameterTable.AdjustingEditor

  • All Implemented Interfaces:, javax.swing.CellEditor, javax.swing.table.TableCellEditor
    Enclosing class:

    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.
    Erich Schubert
    • Constructor Summary

      Constructor Description
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.CellEditor

        addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serial version
        See Also:
        Constant Field Values
      • plaintextEditor

        private final javax.swing.DefaultCellEditor plaintextEditor
        The plain text cell 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.
    • Constructor Detail

      • AdjustingEditor

        public AdjustingEditor()
    • Method Detail

      • getCellEditorValue

        public java.lang.Object getCellEditorValue()
        Specified by:
        getCellEditorValue in interface javax.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 interface javax.swing.table.TableCellEditor