|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | 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
public class 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
---|
WOComponent.Event |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary |
---|
Fields inherited from class com.webobjects.directtoweb.D2WComponent |
---|
currentObjectKey |
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,
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 WOComponent nextPage()
public void setNextPage(WOComponent nextPage)
nextPage
- - the WOComponent to display when the user clicks Return.public NextPageDelegate nextPageDelegate()
setNextPageDelegate
method to customize the D2WPage behavior
when the user leaves the page.
D2WPage.nextPage()
,
D2WPage.setNextPageDelegate(NextPageDelegate)
public void setNextPageDelegate(NextPageDelegate nextPageDelegate)
nextPageDelegate
- - the delegate for the next page.public boolean showCancel()
public EODataSource dataSource()
public void setDataSource(EODataSource newValue)
newValue
- - the data source to display.public boolean alternateRowColor()
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
replacementAssociationForAssociation
in interface DTWGeneration
replacementAssociationForAssociation
in class D2WComponent
public String descriptionForResponse(WOResponse r, WOContext c)
descriptionForResponse
in class WOComponent
r
- the HTTP response that an application returns to a Web server to complete a cycle of the request-response loopc
- context of a transaction
WOStatisticsStore
public NSMutableDictionary extraBindings()
public void setExtraBindings(NSMutableDictionary extraBindings)
public String pageWrapperName()
public void finalize() throws Throwable
finalize
in class Object
Throwable
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |