com.zfqjava.swing.cell
Class StreamCellEditor
java.lang.Object
|
+--com.zfqjava.swing.cell.AbstractCellEditor
|
+--com.zfqjava.swing.cell.StreamCellEditor
- All Implemented Interfaces:
- javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
- public class StreamCellEditor
- extends AbstractCellEditor
StreamCellEditor provides a stream editor,
can be used as JTable, JTree
cell editor.
Support Object Type:
- java.io.InputStream
- java.io.OutputStream
- java.io.Reader
- java.io.Writer
- java.io.File
- java.net.URL
- java.sql.Blob
- java.sql.Clob
|
Method Summary |
protected void |
commitEdit()
Commits the editing. |
java.awt.Component |
getComponent()
Returns the component for this editor. |
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.AbstractCellEditor |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorComponent, getCellEditorListeners, getCellEditorValue, getCellProvider, getListCellEditorComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, removeCellEditorListener, setCellProvider, setValue, shouldSelectCell, stopCellEditing, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamCellEditor
public StreamCellEditor()
- Constructs a StreamCellEditor
getComponent
public java.awt.Component getComponent()
- Description copied from class:
AbstractCellEditor
- Returns the component for this editor.
- Overrides:
getComponent in class AbstractCellEditor
- Following copied from class:
com.zfqjava.swing.cell.AbstractCellEditor
- Returns:
- the component for this editor
setValue
protected void setValue(java.lang.Object value)
- Description copied from class:
AbstractCellEditor
- Sets the value for current editor.
- Overrides:
setValue in class AbstractCellEditor
- 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 AbstractCellEditor
- Following copied from class:
com.zfqjava.swing.cell.AbstractCellEditor
- Returns:
- the value for current editor
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 AbstractCellEditor
- Following copied from class:
com.zfqjava.swing.cell.AbstractCellEditor
- Throws:
java.text.ParseException - if cannot commit the editing
Copyright © 2001-2003 Extreme Component, Inc. All rights reserved.