|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EODocument
EODocument is an interface that defines the behavior of a controller that displays and edits enterprise objects.
Method Summary | |
---|---|
boolean |
isDocumentForGlobalID(EOGlobalID globalID,
String entityName)
Returns whether the receiver is a document for the enterprise object associated with globalID and entityName . |
boolean |
isEdited()
Returns the receiver's edited state. |
boolean |
save()
Saves the receiver's edits, returning whether the operation was successful. |
boolean |
saveIfUserConfirms(String operationTitle,
String message)
If the receiver's enterprise object graph has been edited, opens an alert panel that allows the user to save the edits, discard the edits, or cancel the save operation. |
void |
setEdited(boolean flag)
Sets the receiver's edited state. |
Method Detail |
---|
boolean isDocumentForGlobalID(EOGlobalID globalID, String entityName)
globalID
and entityName
.
Typically implementations return true
if the receiver's
display group is displaying the specified enterprise object.
globalID
- the EOGlobalID of the enterprise objectentityName
- the name of the entity of the enterprise object
true
if the receiver's display group is displaying the specified enterprise object;
false
otherwisevoid setEdited(boolean flag)
flag
- true
if the controller is edited (and unsaved); false
otherwiseboolean isEdited()
true
if the controller is edited (and unsaved); false
otherwiseboolean save()
true
if the save succeeded; false
otherwiseEODocument.saveIfUserConfirms(String, String)
boolean saveIfUserConfirms(String operationTitle, String message)
operationTitle
argument is used as the title of the
alert panel, and message
is used as the message in the panel. Returns
whether the operation was successful or whether it failed or was cancelled.
true
if the save succeeded; false
if the save failed or was cancelled by the userEODocument.save()
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |