Package adams.gui.flow.setup
Class FlowSetupCellEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- adams.gui.flow.setup.FlowSetupCellEditor
-
- All Implemented Interfaces:
Serializable
,EventListener
,CellEditor
,TableModelListener
,TableCellEditor
,TreeCellEditor
public class FlowSetupCellEditor extends DefaultCellEditor implements TableModelListener
Custom cell renderer for the flow setups.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected JComboBox
m_ComboBox
the JCombobox used for displaying the flow setup names.protected FlowSetupTableModel
m_TableModel
the table model to use.-
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
-
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
-
Constructor Summary
Constructors Constructor Description FlowSetupCellEditor(FlowSetupTableModel model)
Initializes the cell editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
tableChanged(TableModelEvent e)
This fine grain notification tells listeners the exact range of cells, rows, or columns that changed.protected void
update()
Updates the names listed in the combobox.-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
-
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, removeCellEditorListener
-
-
-
-
Field Detail
-
m_TableModel
protected FlowSetupTableModel m_TableModel
the table model to use.
-
m_ComboBox
protected JComboBox m_ComboBox
the JCombobox used for displaying the flow setup names.
-
-
Constructor Detail
-
FlowSetupCellEditor
public FlowSetupCellEditor(FlowSetupTableModel model)
Initializes the cell editor.- Parameters:
model
- the model to use
-
-
Method Detail
-
update
protected void update()
Updates the names listed in the combobox.
-
tableChanged
public void tableChanged(TableModelEvent e)
This fine grain notification tells listeners the exact range of cells, rows, or columns that changed.- Specified by:
tableChanged
in interfaceTableModelListener
- Parameters:
e
- the event
-
-