private class ParameterTable.FileNameEditor extends AbstractCellEditor implements TableCellEditor, ActionListener
Modifier and Type | Field and Description |
---|---|
(package private) JButton |
button
The button to open the file selector
|
(package private) JFileChooser |
fc
The actual file chooser
|
(package private) JPanel |
panel
We need a panel to put our components on.
|
private static long |
serialVersionUID
Serial version number
|
(package private) JTextField |
textfield
Text field to store the name
|
changeEvent, listenerList
Constructor and Description |
---|
ParameterTable.FileNameEditor()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Button callback to show the file selector
|
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 JFileChooser fc
public ParameterTable.FileNameEditor()
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