com.webobjects.directtoweb
Interface QueryPageInterface
- All Known Subinterfaces:
- QueryAllPageInterface
- All Known Implementing Classes:
- D2WQueryPage
- 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.
queryDataSource
public 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.
setNextPageDelegate
public 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
Copyright © 2003 Apple Computer, Inc.