private class ParameterTable.ClassListEditor extends AbstractCellEditor implements TableCellEditor, ActionListener
Modifier and Type | Class and Description |
---|---|
(package private) class |
ParameterTable.ClassListEditor.SuperPopup
Modified popup
|
Modifier and Type | Field and Description |
---|---|
(package private) JButton |
button
The button to open the file selector
|
(package private) JComboBox |
combo
The combobox we are abusing to produce the popup
|
(package private) JPanel |
panel
We need a panel to put our components on.
|
(package private) ParameterTable.ClassListEditor.SuperPopup |
popup
The popup menu.
|
private static long |
serialVersionUID
Serial version number
|
(package private) JTextField |
textfield
Text field to store the name
|
changeEvent, listenerList
Constructor and Description |
---|
ParameterTable.ClassListEditor()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Callback to show the popup menu
|
Object |
getCellEditorValue()
Delegate getCellEditorValue to the text field.
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Apply the Editor for a selected option.
|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
private static final long serialVersionUID
final JPanel panel
final JTextField textfield
final JButton button
final JComboBox combo
final ParameterTable.ClassListEditor.SuperPopup popup
public ParameterTable.ClassListEditor()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent
in interface TableCellEditor