WebObjects 5.2

com.webobjects.directtoweb
Interface SelectPageInterface

All Known Implementing Classes:
D2WListPage

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

nextPageDelegate

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

selectedObject

public EOEnterpriseObject selectedObject()
Returns the object selected by the user.
Returns:
object that's selected in the datasource

setDataSource

public 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.

setNextPageDelegate

public 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

setSelectedObject

public 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

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.