
Public Member Functions | |
| ERDObjectSaveDelegate (EOEnterpriseObject object, WOComponent nextPage) | |
| WOComponent | nextPage (WOComponent sender) |
Protected Member Functions | |
| EOEditingContext | editingContext () |
| EOEnterpriseObject | object () |
Private Attributes | |
| EOEditingContext | _context |
| WOComponent | _nextPage |
| EOEnterpriseObject | _object |
public WOComponent confirmSave() { ConfirmPageInterface cpi = (ConfirmPageInterface)D2W.factory().pageForConfigurationNamed("ConfirmSaveUserChanges", session()); cpi.setConfirmDelegate(new ERXObjectSaveDelegate(user, context().page())); cpi.setCancelDelegate(someCancelDelegate); return (WOComponent)cpi; } This way if the user selects the confirm button the editing context will be saved and they will be brought back to the current page. | ERDObjectSaveDelegate | ( | EOEnterpriseObject | object, | |
| WOComponent | nextPage | |||
| ) |
Public constructor
| object | to be saved | |
| nextPage | to be returned |
| EOEditingContext editingContext | ( | ) | [protected] |
returns the editing context of the object. Useful for subclasses
| WOComponent nextPage | ( | WOComponent | sender | ) |
Implementation of the NextPageDelegate interface First saves the changes in the object's editing context and then returns the nextPage.
| sender | component calling the delegate |
| EOEnterpriseObject object | ( | ) | [protected] |
returns the object. Useful for subclasses
EOEditingContext _context [private] |
holds a reference to the objects ec so that it won't be collected by the garbage collector
WOComponent _nextPage [private] |
holds the next page
EOEnterpriseObject _object [private] |
holds the object
1.5.8