WebObjects 5.2.3

com.webobjects.directtoweb
Interface EditRelationshipPageInterface

All Known Implementing Classes:
D2WEditRelationshipPage

public interface EditRelationshipPageInterface

This interface is implemented by pages returned by the D2W method editRelationshipPageForEntityNamed. Use methods defined in this interface to initialize a newly created edit-relationship page.


Method Summary
 void setMasterObjectAndRelationshipKey(EOEnterpriseObject eo, String relationshipKey)
          Sets the object and relationship to edit.
 void setNextPage(WOComponent nextPage)
          Sets page to display when the user clicks 'Return' in the edit-relationship page.
 void setNextPageDelegate(NextPageDelegate nextPageDelegate)
          Sets delegate object that receives call to nextPage method.
 

Method Detail

setMasterObjectAndRelationshipKey

public void setMasterObjectAndRelationshipKey(EOEnterpriseObject eo,
                                              String relationshipKey)
Sets the object and relationship to edit. For example, to edit a movie's toStudio relationship, set eo to a Movie object and relationshipKey to "toStudio".

Parameters:
eo - object to edit the relationship on
relationshipKey - name of relationship to edit on eo

setNextPage

public void setNextPage(WOComponent nextPage)
Sets page to display when the user clicks 'Return' in the edit-relationship page. If the new page needs to be initialized, use the method setNextPageDelegate instead.

Parameters:
nextPage - page returned when 'Return' button is clicked in the page

setNextPageDelegate

public void setNextPageDelegate(NextPageDelegate nextPageDelegate)
Sets delegate object that receives call to nextPage method. When the user clicks 'Return' in the edit-relationship page, Direct to Web invokes the nextPage method on nextPageDelegate. The page returned by that method call is the next page displayed. One normally uses this delegate mechanism to initialize the next page.

Parameters:
nextPageDelegate - delegate object that receives the call to nextPage when the user clicks 'Return' in the edit-relationship page

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.