Documentation Archive Developer
Search
PATH Documentation > WebObjects

Table of Contents

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()

Description forthcoming.


Instance Methods



addCellEditorListener

public void addCellEditorListener(javax.swing.event.CellEditorListener aCellEditorListener)

Description forthcoming.

beginEditing

protected void beginEditing()

Description forthcoming.

cancelCellEditing

public void cancelCellEditing()

Description forthcoming.

createEditorComponent

protected abstract java.awt.Component createEditorComponent()

Description forthcoming.

editingTableColumnAssociation

public com.webobjects.eointerface.EOTableColumnAssociation editingTableColumnAssociation()

Returns the EOTableColumnAssociation that's bound to the column being edited, which is cached in EOColumnEditor's implementation of shouldSelectCell and getTableCellEditorComponent..

editorComponent

public java.awt.Component editorComponent()

Returns the receiver's Component-a user interface control that implements the editing mechanism. EOColumnEditor caches the Component in the constructor (in the method createEditorComponent, which is invoked from the constructor).

endEditing

protected void endEditing()

Description forthcoming.

fireEditingCanceled

protected void fireEditingCanceled()

Description forthcoming.

fireEditingStopped

protected void fireEditingStopped()

Description forthcoming.

getCellEditorValue

public Object getCellEditorValue()

Returns the receiver's editorComponent. EOColumnEditor's implementation simply returns 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)

Description forthcoming.

isCellEditable

public boolean isCellEditable(java.util.EventObject event)

Description forthcoming.

removeCellEditorListener

public void removeCellEditorListener(javax.swing.event.CellEditorListener aCellEditorListener)

Description forthcoming.

setCellEditorValue

protected abstract void setCellEditorValue(Object value)

Description forthcoming.

setEditorComponent

public void setEditorComponent(java.awt.Component editorComponent)

Description forthcoming.

shouldSelectCell

public boolean shouldSelectCell(java.util.EventObject event)

Description forthcoming.

stopCellEditing

public boolean stopCellEditing()

Description forthcoming.

© 2001 Apple Computer, Inc. (Last Published April 21, 2001)


Table of Contents