PATH |
D2WInspectPage
Package: com.webobjects.directtowebInherits from:D2WPage
Implements:
- InspectPageInterface
- com.webobjects.directtoweb.generation.DTWGeneration
- EditPageInterface
Subclasses:
Class Description
This class provides the behavior for the inspect page and edit page Direct to Web templates, specifically
Most of the methods in this class are accessed (via the .wod
) file. If you create a Direct to Web template from an inspect page or an edit 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.
Method Types
Constructors
Fields
Actions
Key-Value Coding
Private Methods
- awake
- implementedInterface
- replacementAssociationForAssociation
- setEditingContext
- sleep
- validationFailedWithException
Constructors
D2WInspectPage
public D2WInspectPage()
Standard Java no-argument constructor.
Fields
errorMessage
java.lang.String
Contains an error message displayed on the inspect page.
Methods
awake
public void awake()
This method is intentionally undocumented. You should never have to invoke or customize it.
cancelAction
public WOComponent cancelAction()
This action method is invoked when the user clicks Cancel. It discards the edits on the page. You can specify the component this action displays by overriding
nextPage
. You can also specify custom behavior for this action by overriding nextPageDelegate
; in this case, nextPage
is ignored.See Also:
nextPage (D2WPage)
nextPageDelegate (D2WPage)
deleteAction
public WOComponent deleteAction()
This action method is invoked when the user clicks Delete. It deletes the object that the page is inspecting or editing. You can specify the component this action displays by overriding
nextPage
. You can also specify custom behavior for this action by overriding nextPageDelegate
; in this case, nextPage
is ignored.See Also:
nextPage (D2WPage)
nextPageDelegate (D2WPage)
editAction
public WOComponent editAction()
This action method is invoked when the user clicks Edit in an inspect page. It creates an edit page for the inspected object.
implementedInterface
public String implementedInterface()
This method is intentionally undocumented. You should never have to invoke or customize it.
nextPage
public WOComponent nextPage()
This action method is invoked when the user clicks Return in an inspect page. You can specify the component this action displays by overriding this method. You can also specify custom behavior for this action by overriding
nextPageDelegate
instead.See Also:
nextPageDelegate (D2WPage)
object
public EOEnterpriseObject object()
Returns the
replacementAssociationForAssociation
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
This method is intentionally undocumented. You should never have to invoke or customize it.
setEditingContext
public void setEditingContext(EOEditingContext editingContext)
This method is intentionally undocumented. You should never have to invoke or customize it.
setObject
public void setObject(EOEnterpriseObject object)
Sets the object displayed by the inspect or edit page.
sleep
public void sleep()
This method is intentionally undocumented. You should never have to invoke or customize it.
submitAction
public WOComponent submitAction()
This action method executes when the user clicks Save on the edit page. It saves the edits to the database.
validationFailedWithException
public void validationFailedWithException(Throwable anExeception, Object anObject, String aString)
This method is intentionally undocumented. You should never have to invoke or customize it.
© 2001 Apple Computer, Inc.