PATH Documentation > WebObjects

Table of Contents

EODocument


Implemented by:
EODocumentController
Implements:
EOObjectDisplay
Package:
com.webobjects.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.webobjects.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 receiver's 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 receiver's edits, returning true on success or false otherwise.

saveIfUserConfirms

public abstract boolean saveIfUserConfirms( String operationTitle, String message)

If the receiver's 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 receiver's edited status according to flag.

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


Table of Contents