dsto.dfc.swing.forms
Class FormToCellEditorAdapter
java.lang.Object
javax.swing.AbstractCellEditor
dsto.dfc.swing.forms.FormToCellEditorAdapter
- All Implemented Interfaces:
- FormEditorListener, Serializable, EventListener, CellEditor, TableCellEditor, TreeCellEditor
public class FormToCellEditorAdapter
- extends AbstractCellEditor
- implements FormEditorListener, TableCellEditor, TreeCellEditor
Allows any FormEditor to a be used in a JTable or JTree by adapting it to
the tree/table cell editor interfaces.
- Version:
- $Revision$
- Author:
- Matthew Phillips
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editor
protected FormEditor editor
FormToCellEditorAdapter
public FormToCellEditorAdapter(FormEditor editor)
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interface CellEditor
editCommitted
public void editCommitted(ChangeEvent e)
- Description copied from interface:
FormEditorListener
- Signals that an edit has been committed into the model.
- Specified by:
editCommitted
in interface FormEditorListener
editCommitRequested
public void editCommitRequested(ChangeEvent e)
- Description copied from interface:
FormEditorListener
- Signals that the editor is ready to commit a value into the
model. Parent editors monitor will invoke commitEdits () on the
the requesting editor if appropriate.
- Specified by:
editCommitRequested
in interface FormEditorListener
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent
in interface TableCellEditor
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
- Specified by:
getTreeCellEditorComponent
in interface TreeCellEditor
Copyright © 2008 Commonwealth of Australia