com.zfqjava.swing.cell
Class DateCellEditor

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

public class DateCellEditor
extends AbstractCellEditor

DateCellEditor provides a date editor, can be used as JTable, JTree cell editor.


Fields inherited from class com.zfqjava.swing.cell.AbstractCellEditor
changeEvent, listenerList, useSelectionColor
 
Constructor Summary
DateCellEditor()
          Constructs a DateCellEditor
 
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, getCellEditorListeners, getCellEditorValue, getCellProvider, getListCellEditorComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, removeCellEditorListener, setCellProvider, shouldSelectCell, stopCellEditing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateCellEditor

public DateCellEditor()
Constructs a DateCellEditor
Method Detail

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.