|
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 com.webobjects.directtoweb.D2WErrorPage
public class D2WErrorPage
The D2WErrorPage
class provides behavior for the error page
Direct to Web templates, specifically BASErrorPage, NEUErrorPage, and
WOLErrorPage.
The classes for these pages inherit directly from D2WErrorPage and define no
additional methods or variables.
Most methods are accessed, via the EOKeyValueCoding interface defined in
EOControl, from the bindings (.wod) file of the Direct to Web template.
If you create a Direct to Web template from an error page, you can invoke the
methods in this class in the same way.
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 | |
---|---|
D2WErrorPage(WOContext aContext)
Constructs a D2WErrorPage with the specified context. |
Method Summary | |
---|---|
WOComponent |
cancelAction()
Is invoked when the user clicks Return. |
String |
firstLineOfMessage()
Returns a String containing a truncated version of the error message that fits on a single line. |
String |
formattedMessage()
Returns a String containing a version of the error message with line breaks added so that it fits on the page. |
boolean |
hasNextPage()
Returns whether nextPage or nextPageDelegate has been set. |
String |
message()
Returns the message displayed by the error page. |
WOAssociation |
replacementAssociationForAssociation(WOAssociation oldAssociation,
String oldBinding,
DTWTemplate aTemplate,
WOContext aContext)
This method is intentionally undocumented. |
void |
setMessage(String newValue)
Sets the message displayed by the error page. |
Methods inherited from class com.webobjects.directtoweb.D2WPage |
---|
alternateRowColor, dataSource, descriptionForResponse, extraBindings, finalize, nextPage, nextPageDelegate, pageWrapperName, setDataSource, setExtraBindings, setNextPage, setNextPageDelegate, showCancel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.webobjects.directtoweb.ErrorPageInterface |
---|
setNextPage |
Constructor Detail |
---|
public D2WErrorPage(WOContext aContext)
aContext
- - the WOContext.Method Detail |
---|
public String message()
public void setMessage(String newValue)
ErrorPageInterface
setMessage
in interface ErrorPageInterface
newValue
- text displayed in error pagepublic String formattedMessage()
public String firstLineOfMessage()
public boolean hasNextPage()
nextPage
or nextPageDelegate
has been set.
If so, the error page can go to another page when the user clicks Return.
Otherwise, the error page displays a hyperlink that starts a new session.
nextPage
or nextPageDelegate
is set; false otherwise.public WOComponent cancelAction()
nextPage
to specify the component this action displays.
Or, override nextPageDelegate
, in which case nextPage
is ignored.
D2WPage.nextPage()
,
D2WPage.nextPageDelegate()
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
D2WPage
replacementAssociationForAssociation
in interface DTWGeneration
replacementAssociationForAssociation
in class D2WPage
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |