com.zfqjava.swing.cell
Class FormulaCellEditor
java.lang.Object
com.zfqjava.swing.cell.AbstractCellEditor
com.zfqjava.swing.cell.ObjectCellEditor
com.zfqjava.swing.cell.FormulaCellEditor
- All Implemented Interfaces:
- ActionListener, FocusListener, EventListener, CellEditor, ComboBoxEditor, TableCellEditor, TreeCellEditor
public class FormulaCellEditor
- extends ObjectCellEditor
FormulaCellEditor provides a Formula editor,
can be used as JTable, JTree
cell editor.
|
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.ObjectCellEditor |
createAComboBox, createComboBox, createComboBoxModel, createTextField, getComponent, getComponentType, getDefaultHorizontalAlignment, getEditingValue, setComponentType, setDefaultHorizontalAlignment, setOpaque, updateUI |
| Methods inherited from class com.zfqjava.swing.cell.AbstractCellEditor |
actionPerformed, addActionListener, addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, focusGained, focusLost, getCellEditorComponent, getCellEditorComponentType, getCellEditorListeners, getCellEditorValue, getCellProvider, getClickCountToStart, getEditingStopBehavior, getEditorComponent, getFocusLostBehavior, getItem, getListCellEditorComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, isOpaque, removeActionListener, removeCellEditorListener, selectAll, setCellEditorComponentType, setCellProvider, setClickCountToStart, setEditingStopBehavior, setFocusLostBehavior, setItem, setValue, shouldSelectCell, stopCellEditing |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormulaCellEditor
public FormulaCellEditor()
- Constructs a FormulaCellEditor
setValue
protected void setValue(Object value)
- Description copied from class:
AbstractCellEditor
- Sets the value for current editor.
- Overrides:
setValue in class ObjectCellEditor
- 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 ObjectCellEditor
- Returns:
- the value for current editor
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 ObjectCellEditor
- Throws:
ParseException - if cannot commit the editing
Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.