com.zfqjava.swing.cell
Class FileCellEditor

java.lang.Object
  |
  +--com.zfqjava.swing.cell.AbstractCellEditor
        |
        +--com.zfqjava.swing.cell.DefaultCellEditor
              |
              +--com.zfqjava.swing.cell.FileCellEditor
All Implemented Interfaces:
javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor

public class FileCellEditor
extends DefaultCellEditor

FileCellEditor provides a file editor, can be used as JTable, JTree cell editor.


Fields inherited from class com.zfqjava.swing.cell.DefaultCellEditor
iconLabel, textField
 
Fields inherited from class com.zfqjava.swing.cell.AbstractCellEditor
changeEvent, listenerList, useSelectionColor
 
Constructor Summary
FileCellEditor()
          Constructs a FileCellEditor
 
Method Summary
protected  void commitEdit()
          Commits the editing.
protected  java.lang.Object getValue()
          Returns the value for current editor
protected  void setValue(java.lang.Object value)
          Sets the value for current editor.
 
Methods inherited from class com.zfqjava.swing.cell.DefaultCellEditor
getComponent, isCellEditable, setValue
 
Methods inherited from class com.zfqjava.swing.cell.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorComponent, getCellEditorListeners, getCellEditorValue, getCellProvider, getListCellEditorComponent, getTableCellEditorComponent, getTreeCellEditorComponent, removeCellEditorListener, setCellProvider, shouldSelectCell, stopCellEditing, updateUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCellEditor

public FileCellEditor()
Constructs a FileCellEditor
Method Detail

commitEdit

protected void commitEdit()
                   throws java.text.ParseException
Description copied from class: AbstractCellEditor
Commits the editing. This invoke by AbstractCellEditor.stopCellEditing(), if cannot commit current editing, should throws exception.
Overrides:
commitEdit in class DefaultCellEditor
Following copied from class: com.zfqjava.swing.cell.AbstractCellEditor
Throws:
java.text.ParseException - if cannot commit the editing

setValue

protected void setValue(java.lang.Object value)
Description copied from class: AbstractCellEditor
Sets the value for current editor.
Overrides:
setValue in class DefaultCellEditor
Following copied from class: com.zfqjava.swing.cell.AbstractCellEditor
Parameters:
value - the value to editor

getValue

protected java.lang.Object getValue()
Description copied from class: AbstractCellEditor
Returns the value for current editor
Overrides:
getValue in class DefaultCellEditor
Following copied from class: com.zfqjava.swing.cell.AbstractCellEditor
Returns:
the value for current editor


Copyright © 2001-2003 Extreme Component, Inc. All rights reserved.