Documentation Archive Developer
Search
[an error occurred while processing this directive] PATH  Documentation > WebObjects 4.5 > EOInterface Reference

Table of Contents

EOTextColumnEditor


Inherits from:
EOColumnEditor
Implements:
java.awt.event.ActionListener
java.awt.event.FocusListener
javax.swing.table.TableCellEditor (EOColumnEditor)
javax.swing.CellEditor (javax.swing.table.TableCellEditor)
Package:
com.apple.client.eointerface


Class Description


EOTextColumnEditor is a concrete subclass of EOColumnEditor whose instances mediate between EOTextColumnAssociations and EOTextFields (an EOTextColumnEditor's editorComponent is an EOTextField).


Note: This class doesn't exist in the com.apple.yellow.eointerface package.

For more information on the purpose of EOTextColumnEditors, see the EOColumnEditor class specification.




Interfaces Implemented


java.awt.event.ActionListener
actionPerformed
java.awt.event.FocusListener
focusGained
focusLost


Method Types


Instantiation
createEditorComponent
Handling events
actionPerformed
beginEditing
endEditing
Accessing the text field
getCellEditorValue
isCellEditable
setCellEditorValue


Instance Methods



actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)

Invokes stopCellEditing.

See Also: stopCellEditing ( EOColumnEditor)



beginEditing

protected void beginEditing()

Adds the receiver to its editor component as a java.awt.event.FocusListener and as a java.awt.event.ActionListener, and invokes super's implementation.

See Also: beginEditing ( EOColumnEditor)



createEditorComponent

protected abstract java.awt.Component createEditorComponent()

Returns a newly instantiated javax.swing.JTextField with a black javax.swing.border.LineBorder.

See Also: createEditorComponent ( EOColumnEditor)



endEditing

protected void endEditing()

Removes the receiver from its editor component's focus and action listener lists, and invokes super's implementation.

See Also: endEditing ( EOColumnEditor)



focusLost

public void focusLost(java.awt.event.FocusEvent event)

Invokes stopCellEditing.

See Also: stopCellEditing ( EOColumnEditor)



getCellEditorValue

public Object getCellEditorValue()

Overrides super's implementation to return the text value of the receiver's editorComponent, an EOTextField.

isCellEditable

public boolean isCellEditable(java.util.EventObject event)

Overrides super's implementation to return true as long as event is not a java.awt.event.MouseEvent with a click count of less than two.

setCellEditorValue

public void setCellEditorValue(Object initialValue)

Sets the value of the receiver's editor component, an EOTextField by default, to initialValue using the method setText.


Table of Contents