|
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.D2WInspectPage
public class D2WInspectPage
The D2WInspectPage
class provides behavior for the inspect page
and edit page Direct to Web templates, specifically BASInspectPage,
NEUInspectPage, and WOLInspectPage.
The classes for these pages inherit directly from D2WInspectPage and define
no additional methods or variables.
Most methods are accessed, via the EOKeyValueCoding interface defined in the
EOControl framework, from the Direct to Web template bindings (.wod) file.
If you create a Direct to Web template from an error page, 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 | |
---|---|
String |
errorMessage
Contains an error message displayed on the inspect page. |
Fields inherited from class com.webobjects.directtoweb.D2WComponent |
---|
currentObjectKey |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
KeyPathSeparator |
Constructor Summary | |
---|---|
D2WInspectPage(WOContext aContext)
Constructs a D2WInspectPage with the specified context. |
Method Summary | |
---|---|
void |
awake()
This method is intentionally undocumented. |
WOComponent |
cancelAction()
Is invoked when the user clicks Cancel. |
WOComponent |
deleteAction()
Is invoked when the user clicks Delete. |
WOComponent |
editAction()
This action method executes when the user clicks Edit in an inspect page. |
String |
implementedInterface()
This method is intentionally undocumented. |
WOComponent |
nextPage()
Is invoked when the user clicks Return in an inspect page. |
EOEnterpriseObject |
object()
Returns the Object displayed by the inspect or edit page. |
WOAssociation |
replacementAssociationForAssociation(WOAssociation oldAssociation,
String oldBinding,
DTWTemplate aTemplate,
WOContext aContext)
This method is intentionally undocumented. |
void |
setEditingContext(EOEditingContext newEditingContext)
This method is intentionally undocumented. |
void |
setObject(EOEnterpriseObject eo)
Sets the object displayed by the inspect or edit page. |
void |
sleep()
This method is intentionally undocumented. |
WOComponent |
submitAction()
This action method executes when the user clicks Save on the edit page. |
void |
validationFailedWithException(Throwable theException,
Object theValue,
String theKeyPath)
This method is intentionally undocumented. |
Methods inherited from class com.webobjects.directtoweb.D2WPage |
---|
alternateRowColor, dataSource, descriptionForResponse, extraBindings, finalize, 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.InspectPageInterface |
---|
setNextPage, setNextPageDelegate |
Methods inherited from interface com.webobjects.directtoweb.InspectPageInterface |
---|
setNextPage, setNextPageDelegate |
Field Detail |
---|
public String errorMessage
Constructor Detail |
---|
public D2WInspectPage(WOContext aContext)
aContext
- - the WOContext.Method Detail |
---|
public void setObject(EOEnterpriseObject eo)
setObject
in interface InspectPageInterface
setObject
in class D2WComponent
eo
- - the EOEnterpriseObject to display or edit.public EOEnterpriseObject object()
object
in class D2WComponent
public String implementedInterface()
public WOComponent nextPage()
nextPage
in class D2WPage
D2WPage.nextPageDelegate()
public WOComponent submitAction() throws Throwable
Throwable
public WOComponent editAction()
public WOComponent deleteAction() throws Throwable
Throwable
D2WPage.nextPage()
,
D2WPage.nextPageDelegate()
public WOComponent cancelAction()
D2WPage.nextPage()
,
D2WPage.nextPageDelegate()
public void awake()
awake
in class WOComponent
WOComponent.ensureAwakeInContext(WOContext aContext)
,
WOComponent.sleep()
public void sleep()
sleep
in class WOComponent
WOComponent.awake()
public void setEditingContext(EOEditingContext newEditingContext)
public void validationFailedWithException(Throwable theException, Object theValue, String theKeyPath)
validationFailedWithException
in class WOComponent
theException
- the exception thrown during validationtheValue
- the given value to be validatedtheKeyPath
- the key path associated with this value, identifies the property of an objectpublic WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
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 |