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

Inner classes inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
 
Field Summary
(package private)  int editCol
           
(package private)  int editRow
           
(package private)  JTable editTable
           
(package private)  String fileName
           
(package private)  BBBrowseRenderer renderer
           
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
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
 
Method Summary
 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
 boolean stopCellEditing()
          This cell editor is different because it sets the value of the revious cell
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, removeCellEditorListener
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Field Detail

renderer

BBBrowseRenderer renderer

fileName

String fileName

editTable

JTable editTable

editRow

int editRow

editCol

int editCol
Constructor Detail

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
Method Detail

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