Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > EOApplication Reference

Table of Contents

EODocument


Implemented by:
EODocumentController
Implements:
EOObjectDisplay
Package:
com.apple.client.eoapplication

Interface Description


EODocument is an interface that defines the behavior of a controller that displays and edits enterprise objects.



Instance Methods



isDocumentForGlobalID

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.



isEdited

public abstract boolean isEdited()

Returns true if the receiver has unsaved edits, false otherwise.



save

public abstract boolean save()

Saves the receivers edits, returning true on success or false otherwise.



saveIfUserConfirms

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.



setEdited

public abstract void setEdited(boolean flag)

Sets the receivers edited status according to flag.




Table of Contents

DRAFT