org.opennms.bb.eui.common.components
Class BBBrowseEditor
java.lang.Object
|
+--javax.swing.AbstractCellEditor
|
+--javax.swing.DefaultCellEditor
|
+--org.opennms.bb.eui.common.components.BBBrowseEditor
- All Implemented Interfaces:
- CellEditor, Serializable, TableCellEditor, TreeCellEditor
- public class BBBrowseEditor
- extends DefaultCellEditor
BBBrowseEditor is the table cell editor that provides the
file browse editor.
It extends the DefaultCellEditor and brings up a JFileChooser and
once the user chooses a value, this value is set as the value of the
previous cell
- Author:
- Sowmya
- See Also:
- Serialized Form
Constructor Summary |
BBBrowseEditor()
Creates the browse editor - the renderer button's action
listener is set to bring up the file chooser for the user to
choose the file |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
renderer
BBBrowseRenderer renderer
fileName
String fileName
editTable
JTable editTable
editRow
int editRow
editCol
int editCol
BBBrowseEditor
public BBBrowseEditor()
- Creates the browse editor - the renderer button's action
listener is set to bring up the file chooser for the user to
choose the file
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int col)
- Overrides the method in the the parent class and returns the
editor component
- Overrides:
getTableCellEditorComponent
in class DefaultCellEditor
stopCellEditing
public boolean stopCellEditing()
- This cell editor is different because it sets the value of the
revious cell
- Overrides:
stopCellEditing
in class DefaultCellEditor