WebObjects 5.4.2

com.webobjects.directtoweb
Interface SelectPageInterface

All Known Implementing Classes:
BASListPage, BASPlainListPage, D2WListPage, D2WPlainListPage, NEUListPage, NEUPlainListPage, WOLListPage, WOLPlainListPage

public interface SelectPageInterface

This interface is implemented by pages returned by the D2W method selectPageForEntityNamed. Use methods defined in this interface to initialize a newly created select page.


Method Summary
 NextPageDelegate nextPageDelegate()
          Returns the receiver's next page delegate.
 EOEnterpriseObject selectedObject()
          Returns the object selected by the user.
 void setDataSource(EODataSource aDataSource)
          Sets the receiver's data source.
 void setNextPageDelegate(NextPageDelegate nextPageDelegate)
          Sets delegate object that receives call to nextPage method.
 void setSelectedObject(EOEnterpriseObject selectedObject)
          Sets the receiver's selected object.
 

Method Detail

setDataSource

void setDataSource(EODataSource aDataSource)
Sets the receiver's data source.

Parameters:
aDataSource - data source containing the group of objects from which the user can make a selection.

selectedObject

EOEnterpriseObject selectedObject()
Returns the object selected by the user.

Returns:
object that's selected in the datasource

setSelectedObject

void setSelectedObject(EOEnterpriseObject selectedObject)
Sets the receiver's selected object. This method can be used to set the default selected object.

Parameters:
selectedObject - object that should be selected when the page is first displayed

setNextPageDelegate

void setNextPageDelegate(NextPageDelegate nextPageDelegate)
Sets delegate object that receives call to nextPage method. When the user clicks 'Select' in the select 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 selects an object

nextPageDelegate

NextPageDelegate nextPageDelegate()
Returns the receiver's next page delegate.

Returns:
the next page delegate

Last updated June 2008

Copyright © 2000-2008 Apple Inc.