EOEditingContext.Editor
(informal interface)
- Package:
- com.apple.client.eocontrol
- com.apple.yellow.eocontrol
Interface Description
The EOEditingContext.Editor interface defines methods for objects that act as higher-level editors of the objects an EOEditingContext contains. An editing context sends messages to its editors to determine whether they have any changes that need to be saved, and to allow them to flush pending changes before a save (possibly throwing an exception to abort the save). See the EOEditingContext and EODisplayGroup (EOInterface) class specifications for more information.
Editors are not required to provide implementations for all
of the methods in the interface. When you write an editor, you don't
have to use the implements
keyword to specify
that the object implements the Editors interface. Instead, simply
use the EOEditingContext method addEditor method to assign your object
as one of the EOEditingContext's editors and then declare and
implement any subset of the methods declared in the Editors interface.
An EOEditingContext can determine if the editor doesn't implement
a method and only attempts to invoke the methods the editor actually
implements.
Instance Methods
editingContextWillSaveChanges
public abstract void
editingContextWillSaveChanges
(EOEditingContext anEditingContext)
editorHasChangesForEditingContext
public abstract boolean
editorHasChangesForEditingContext
(EOEditingContext anEditingContext)