PATH |
EOColumnEditor
- Inherits from:
- Object
- Implements:
- javax.swing.table.TableCellEditor
- Package:
- com.webobjects.eointerface.swing
Class Description
EOColumnEditor is an abstract class that implements generalized cell editing management for javax.swing.JTables. Swing specifies that JTable cell editing is performed by an object implementing the javax.swing.table.TableCellEditor interface. EOColumnEditor implements this interface in a generalized way, and concrete subclasses such as EOTextColumnEditor perform component-specific instantiation and event communication.
The most important function of an EOColumnEditor instance is mediating between its Component and the EOTableColumnAssociation that's bound to the edited column. This mediation enables the validation of edited values that associations are required to perform.
Create a subclass of EOColumnEditor if you want to use a Component for JTable editing for which no EOColumnEditor is implemented.
Interfaces Implemented
- javax.swing.table.TableCellEditor
- addCellEditorListener
- cancelCellEditing
- getCellEditorValue
- getTableCellEditorComponent
- isCellEditable
- removeCellEditorListener
- shouldSelectCell
- stopCellEditing
Method Types
- All methods
- EOColumnEditor
- beginEditing
- createEditorComponent
- editingTableColumnAssociation
- editorComponent
- endEditing
- fireEditingCanceled
- fireEditingStopped
- isCellEditable
- setCellEditorValue
- setEditorComponent
Constructors
EOColumnEditor
public EOColumnEditor()
Instance Methods
addCellEditorListener
public void addCellEditorListener(javax.swing.event.CellEditorListener aCellEditorListener)
beginEditing
protected void beginEditing()
cancelCellEditing
public void cancelCellEditing()
createEditorComponent
protected abstract java.awt.Component createEditorComponent()
editingTableColumnAssociation
public com.webobjects.eointerface.EOTableColumnAssociation editingTableColumnAssociation()
editorComponent
public java.awt.Component editorComponent()
endEditing
protected void endEditing()
fireEditingCanceled
protected void fireEditingCanceled()
fireEditingStopped
protected void fireEditingStopped()
getCellEditorValue
public Object getCellEditorValue()
null
, so subclasses must override this method.
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent( javax.swing.JTable aJTable, Object initialValue, boolean isSelected, int rowIndex, int columnIndex)
isCellEditable
public boolean isCellEditable(java.util.EventObject event)
removeCellEditorListener
public void removeCellEditorListener(javax.swing.event.CellEditorListener aCellEditorListener)
setCellEditorValue
protected abstract void setCellEditorValue(Object value)
setEditorComponent
public void setEditorComponent(java.awt.Component editorComponent)
shouldSelectCell
public boolean shouldSelectCell(java.util.EventObject event)
stopCellEditing
public boolean stopCellEditing()
© 2001 Apple Computer, Inc. (Last Published April 21, 2001)