JComponentPack 1.5.0

com.zfqjava.swing.cell
Class FileCellEditor

java.lang.Object
  extended by com.zfqjava.swing.cell.AbstractCellEditor
      extended by com.zfqjava.swing.cell.DefaultCellEditor
          extended by com.zfqjava.swing.cell.FileCellEditor
All Implemented Interfaces:
ActionListener, FocusListener, EventListener, CellEditor, ComboBoxEditor, TableCellEditor, TreeCellEditor

public class FileCellEditor
extends DefaultCellEditor

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


Field Summary
 
Fields inherited from class com.zfqjava.swing.cell.DefaultCellEditor
iconLabel, textField
 
Fields inherited from class com.zfqjava.swing.cell.AbstractCellEditor
CANCEL_EDITING_ON_FOCUS_LOST, changeEvent, COMMIT, COMMIT_OR_EDITING, COMMIT_OR_REVERT, DO_NOTHING_ON_FOCUS_LOST, listenerList, STOP_EDITING_ON_FOCUS_LOST, useSelectionColor
 
Constructor Summary
FileCellEditor()
          Constructs a FileCellEditor
 
Method Summary
protected  void commitEdit()
          Commits the editing.
protected  Object getValue()
          Returns the value for current editor
protected  void setValue(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
actionPerformed, addActionListener, addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, focusGained, focusLost, getCellEditorComponent, getCellEditorComponentType, getCellEditorListeners, getCellEditorValue, getCellProvider, getClickCountToStart, getEditingStopBehavior, getEditingValue, getEditorComponent, getFocusLostBehavior, getItem, getListCellEditorComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isOpaque, removeActionListener, removeCellEditorListener, selectAll, setCellEditorComponentType, setCellProvider, setClickCountToStart, setEditingStopBehavior, setFocusLostBehavior, setItem, setOpaque, 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 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
Throws:
ParseException - if cannot commit the editing

setValue

protected void setValue(Object value)
Description copied from class: AbstractCellEditor
Sets the value for current editor.

Overrides:
setValue in class DefaultCellEditor
Parameters:
value - the value to editor

getValue

protected Object getValue()
Description copied from class: AbstractCellEditor
Returns the value for current editor

Overrides:
getValue in class DefaultCellEditor
Returns:
the value for current editor

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.