|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.appserver.WOElement | +--com.webobjects.appserver.WOComponent | +--com.webobjects.directtoweb.D2WComponent | +--com.webobjects.directtoweb.D2WPage
D2WPage
is the parent class for the Direct to Web templates.
It provides support for the next page mechanism, which determines the
behavior when the user leaves the page.
It also provides methods used by most or all of the Direct to Web templates,
such as a data source, the page wrapper name, and a flag to indicate whether
to show the cancel button or not.
Most methods are accessed via the EOKeyValueCoding interface in the EOControl
framework from the bindings (.wod) file of the Direct to Web templates.
If you create your own Direct to Web template, 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.
Inner classes inherited from class com.webobjects.appserver.WOComponent |
WOComponent.Event |
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Inner classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Fields inherited from class com.webobjects.directtoweb.D2WComponent |
currentObjectKey |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
KeyPathSeparator |
Constructor Summary | |
D2WPage(WOContext aContext)
Constructs a new D2WPage with the specified context. |
Method Summary | |
boolean |
alternateRowColor()
This method is intentionally undocumented. |
EODataSource |
dataSource()
Returns the EODataSource, defined in the EOControl Framework, containing the objects displayed on the page or the objects that match the query for the query page subclasses. |
String |
descriptionForResponse(WOResponse r,
WOContext c)
This method is intentionally undocumented. |
NSMutableDictionary |
extraBindings()
This method is intentionally undocumented. |
void |
finalize()
|
WOComponent |
nextPage()
Returns the next page of the receiver, a WOComponent, or null, if no next page has been specified. |
NextPageDelegate |
nextPageDelegate()
Returns the next page delegate of the receiver, an object, or null, if no next page delegate has been specified. |
String |
pageWrapperName()
Returns the name of the page wrapper component in which the receiver appears. |
WOAssociation |
replacementAssociationForAssociation(WOAssociation oldAssociation,
String oldBinding,
com.webobjects.directtoweb.generation.DTWTemplate aTemplate,
WOContext aContext)
This method is intentionally undocumented. |
void |
setDataSource(EODataSource newValue)
Sets the EODataSource, defined in the EOControl Framework, containing the objects displayed on the page. |
void |
setExtraBindings(NSMutableDictionary extraBindings)
This method is intentionally undocumented. |
void |
setNextPage(WOComponent nextPage)
Sets the page that displays when the user clicks Return in the page. |
void |
setNextPageDelegate(NextPageDelegate nextPageDelegate)
Sets the next page delegate of the receiver to the specified delegate. |
boolean |
showCancel()
Returns whether or not the Cancel button is displayed on the page of the receiver. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public D2WPage(WOContext aContext)
aContext
- - the WOContext.Method Detail |
public boolean alternateRowColor()
public EODataSource dataSource()
public String descriptionForResponse(WOResponse r, WOContext c)
descriptionForResponse
in class WOComponent
com.webobjects.appserver.WOComponent
aResponse
- the HTTP response that an application returns to a Web
server to complete a cycle of the request-response loopaContext
- context of a transactionWOStatisticsStore
public NSMutableDictionary extraBindings()
public void finalize() throws Throwable
finalize
in class Object
public WOComponent nextPage()
public NextPageDelegate nextPageDelegate()
setNextPageDelegate
method to customize the D2WPage behavior
when the user leaves the page.nextPage()
,
setNextPageDelegate(NextPageDelegate)
public String pageWrapperName()
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, com.webobjects.directtoweb.generation.DTWTemplate aTemplate, WOContext aContext)
replacementAssociationForAssociation
in class D2WComponent
public void setDataSource(EODataSource newValue)
newValue
- - the data source to display.public void setExtraBindings(NSMutableDictionary extraBindings)
public void setNextPage(WOComponent nextPage)
nextPage
- - the WOComponent to display when the user clicks Return.public void setNextPageDelegate(NextPageDelegate nextPageDelegate)
nextPageDelegate
- - the delegate for the next page.public boolean showCancel()
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |