WebObjects 5.4.2

com.webobjects.directtoweb
Interface QueryPageInterface

All Known Subinterfaces:
QueryAllPageInterface
All Known Implementing Classes:
BASQueryAllEntitiesPage, BASQueryPage, D2WQueryAllEntitiesPage, D2WQueryPage, NEUQueryAllPage, NEUQueryPage, WOLQueryAllPage, WOLQueryPage

public interface QueryPageInterface

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


Method Summary
 EODataSource queryDataSource()
          Returns the receiver's EODataSource (defined in the EOControl Framework).
 void setNextPageDelegate(NextPageDelegate nextPageDelegate)
          Sets delegate object that receives call to nextPage method.
 

Method Detail

setNextPageDelegate

void setNextPageDelegate(NextPageDelegate nextPageDelegate)
Sets delegate object that receives call to nextPage method. When the user clicks 'Query' in the query 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. Within the code of the nextPage method you can get the query data source using the method queryDataSource.

Parameters:
nextPageDelegate - delegate object that receives the call to nextPage when the user clicks 'Query' in the query page

queryDataSource

EODataSource queryDataSource()
Returns the receiver's EODataSource (defined in the EOControl Framework).

Returns:
a datasource initialized with a qualifier that matches the search criteria the user specified in the query page. This datasource, for example, could be passed on to a List page to display the results.

Last updated June 2008

Copyright © 2000-2008 Apple Inc.