PATH |
D2WMasterDetailPage
Package: com.webobjects.directtowebInherits from:D2WPage
Implements:
Subclasses:
Class Description
This class provides the behavior for the master-detail page Direct to Web tempaltes, specifically
Most of the methods in this class are accessed (via the .wod
) file. If you create a Direct to Web template from a master-detail page, you can invoke the methods in this class in the same way. See the "Direct to Web" chapter of WebObjects Tools and Techniques for more information about creating a Direct to Web template.
Method Types
Constructors
Fields
Actions
Key-Value Coding
Private Methods
Constructors
D2WMasterDetailPage
public D2WMasterDetailPage()
Standard Java no-argument constructor.
Fields
selectedObject
com.webobjects.eocontrol.EOEnterpriseObject
The EOEnterpriseObject the user chooses in the select component of the page. The edit component edits this object.
Methods
isObjectSelected
public boolean isObjectSelected()
Returns whether the user has selected an object in the select component of the master-detail page. When this condition is true, the edit component appears in the lower half of the master-detail page.
listReturnAction
public WOComponent listReturnAction()
This action method is invoked when the user clicks Return in the master-detail page. You can specify the component this action displays by overriding
nextPage
. You can also specify custom behavior for this action by overriding nextPageDelegate
; in this case, nextPage
is ignored.See Also:
nextPageDelegate (D2WPage)
nextPage (D2WPage)
masterDetailPageDelegate
public NextPageDelegate masterDetailPageDelegate()
Returns the next page delegate for the edit component on the master-detail page. Direct to Web invokes the
nextPage method on this object when the user clicks Cancel in the edit component.See Also:
NextPageDelegate
replacementAssociationForAssociation
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
This method is intentionally undocumented. You should never have to invoke or customize it.
selectPageDelegate
public NextPageDelegate selectPageDelegate()
Returns the next page delegate (an object implementing the NextPageDelegate interface) for the select component on the master-detail page. Direct to Web invokes the nextPage
method on this object when the user selects the record to edit.See Also:
NextPageDelegate
setEditPageDelegate
public void setEditPageDelegate(Object anObject)
This method is intentionally undocumented. You should never have to invoke or customize it.
setSelectPageDelegate
public void setSelectPageDelegate(Object anObject)
This method is intentionally undocumented. You should never have to invoke or customize it.
© 2001 Apple Computer, Inc.