Implemented by:
- EODocumentController
- Implements:
- EOObjectDisplay
- Package:
- com.apple.client.eoapplication
EODocument is an interface that defines the behavior of a controller that displays and edits enterprise objects.
public abstract boolean isDocumentForGlobalID(
com.apple.client.eocontrol.EOGlobalID globalID,
String entityName)
Returns true
if
the receiver is a document for the enterprise object associated
with globalID and entityName, false
otherwise. Typically
implementations return true if the receivers display group is displaying
the specified enteprise object.
public abstract boolean isEdited()
Returns true
if
the receiver has unsaved edits, false
otherwise.
public abstract boolean save()
Saves the receivers edits,
returning true
on success
or false
otherwise.
public abstract boolean saveIfUserConfirms(
String operationTitle,
String message)
If the receivers enterprise
object has been edited, opens an alert panel that allows the user
to save the edits, discard the edits, or cancel the save operation. The operationTitle argument
is used as the title of the alert panel, and message is
used as the message in the panel. Returns true
if
the save succeeds, false
upon
failure or if the user cancels.
public abstract void setEdited(boolean flag)
Sets the receivers edited status according to flag.
DRAFT