bsys.propertyview
Class FileEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by bsys.propertyview.FileEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor

 class FileEditor
extends javax.swing.AbstractCellEditor
implements javax.swing.table.TableCellEditor

File editor

Author:
Bernard Bou

Field Summary
private static long serialVersionUID
           
private  javax.swing.JButton theButton
          Button component
private  java.io.File theCurrentDirectory
          Current directory
private  javax.swing.JFileChooser theFileChooser
          File chooser
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
FileEditor()
          Constructor
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable thisTable, java.lang.Object thisValue, boolean thisIsSelected, int thisRow, int thisColumn)
           
 void setDirectory(java.io.File thisCurrentDirectory)
          Set current directory
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
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, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

theFileChooser

private javax.swing.JFileChooser theFileChooser
File chooser


theButton

private javax.swing.JButton theButton
Button component


theCurrentDirectory

private java.io.File theCurrentDirectory
Current directory

Constructor Detail

FileEditor

public FileEditor()
Constructor

Method Detail

setDirectory

public void setDirectory(java.io.File thisCurrentDirectory)
Set current directory

Parameters:
thisCurrentDirectory - current directory

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable thisTable,
                                                      java.lang.Object thisValue,
                                                      boolean thisIsSelected,
                                                      int thisRow,
                                                      int thisColumn)
Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor