|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public 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
otherwisepublic boolean isEdited()
true
if the controller is edited (and unsaved); false
otherwisepublic boolean save()
true
if the save succeeded; false
otherwisesaveIfUserConfirms(String, String)
public 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 usersave()
public void setEdited(boolean flag)
flag
- true
if the controller is edited (and unsaved); false
otherwise
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |