ERD2WInspectPage Class Reference

Inherits er::directtoweb::pages::ERD2WPage, com::webobjects::directtoweb::InspectPageInterface, er::directtoweb::interfaces::ERDEditPageInterface, er::directtoweb::interfaces::ERDObjectSaverInterface, er::directtoweb::interfaces::ERDFollowPageInterface, and er::extensions::appserver::ERXComponentActionRedirector::Restorable.

Inherited by ERD2WTabInspectPage, ERD2WCompactInspectPageTemplate, ERD2WInspectPageTemplate, ERD2WPrinterFriendlyInspectPageTemplate, and ERNEUInspectPage.

Collaboration diagram for ERD2WInspectPage:

Collaboration graph
[legend]

List of all members.

Public Member Functions

WOComponent cancelAction ()
WOComponent deleteAction () throws Throwable
boolean doesNotHaveForm ()
WOComponent editAction ()
 ERD2WInspectPage (WOContext context)
boolean hasPropertyName ()
WOComponent nextPage (boolean doConfirm)
WOComponent nextPage ()
boolean objectWasSaved ()
String otherTagStringsForPropertyKeyComponentCell ()
void performAdditionalValidations ()
WOComponent previousPage ()
WOComponent printerFriendlyVersion ()
String saveButtonFileName ()
String scriptForFirstResponderActivation ()
void setObject (EOEnterpriseObject eoenterpriseobject)
void setPreviousPage (WOComponent existingPageName)
boolean shouldCollectValidationExceptions ()
boolean shouldRecoverFromOptimisticLockingFailure ()
boolean shouldRenderBorder ()
boolean shouldRevertChanges ()
boolean shouldRevertUponSaveFailure ()
boolean shouldSaveChanges ()
boolean shouldShowActionButtons ()
boolean shouldShowCancelButton ()
boolean shouldShowSubmitButton ()
boolean shouldValidateBeforeSave ()
boolean showCancel ()
WOComponent submitAction () throws Throwable
String tabScriptString ()
void takeValuesFromRequest (WORequest request, WOContext context)
boolean tryToSaveChanges (boolean validateObject)
String urlForCurrentState ()

Static Public Attributes

static final Logger log = Logger.getLogger(ERD2WInspectPage.class)
static final Logger validationCat = Logger.getLogger(ERD2WInspectPage.class+".validation")

Protected Attributes

boolean _objectWasSaved

Static Protected Attributes

static final String firstResponderContainerName = "FirstResponderContainer"

Private Attributes

WOComponent _previousPage


Detailed Description

Superclass for all inspecting/editing ERD2W templates.
inspectConfirmConfigurationName object editConfigurationName useNestedEditingContext shouldRenderBorder shouldShowActionButtons shouldShowCancelButtons shouldShowSubmitButton hasForm validationKeys shouldRevertChanges shouldSaveChanges shoudlvalidateBeforeSave shouldCollectValidationExceptions shouldRecoverFromOptimisticLockingFailure shouldRevertUponSaveFailure firstResponder

Constructor & Destructor Documentation

ERD2WInspectPage ( WOContext  context  ) 

Public constructor

Parameters:
context current context


Member Function Documentation

WOComponent cancelAction (  ) 

WOComponent deleteAction (  )  throws Throwable

boolean doesNotHaveForm (  ) 

WOComponent editAction (  ) 

Reimplemented in ERMODInspectPage, and ERMODTabInspectPage.

boolean hasPropertyName (  ) 

WOComponent nextPage ( boolean  doConfirm  ) 

WOComponent nextPage (  ) 

Reimplemented from ERD2WPage.

boolean objectWasSaved (  ) 

String otherTagStringsForPropertyKeyComponentCell (  ) 

Generates other strings to be included in the WOGenericContainer tag for the propertyKey component cell. This is used in conjunction with the firstResponderKey to mark the cell where the propertyKey is that named by the firstResponderKey so that the "focusing" JavaScript tabScriptString can identify it.

Returns:
a String to be included in the td

tag for the propertyKey component cell.

void performAdditionalValidations (  ) 

WOComponent previousPage (  ) 

WOComponent printerFriendlyVersion (  ) 

String saveButtonFileName (  ) 

Reimplemented in ERNEUTabInspectPage.

String scriptForFirstResponderActivation (  ) 

Constructs a JavaScript string to include in the WOComponent that will give a particular field focus when the page is loaded, if the key firstResponderKey from the d2wContext resolves. The script will attempt to focus on the form field belonging to the property key named by the firstResponderKey.

Returns:
a JavaScript string to bring focus to a specific form element.

void setObject ( EOEnterpriseObject  eo  ) 

Implementation of the InspectPageInterface

Reimplemented from ERD2WPage.

Reimplemented in ERMODTabInspectPage, and ERMODWizardCreationPage.

void setPreviousPage ( WOComponent  existingPageName  ) 

boolean shouldCollectValidationExceptions (  ) 

Should exceptions also be handled here or only handled by the parent.

Reimplemented from ERD2WPage.

boolean shouldRecoverFromOptimisticLockingFailure (  ) 

boolean shouldRenderBorder (  ) 

boolean shouldRevertChanges (  ) 

boolean shouldRevertUponSaveFailure (  ) 

boolean shouldSaveChanges (  ) 

boolean shouldShowActionButtons (  ) 

boolean shouldShowCancelButton (  ) 

boolean shouldShowSubmitButton (  ) 

boolean shouldValidateBeforeSave (  ) 

boolean showCancel (  ) 

Reimplemented from ERD2WPage.

Reimplemented in ERMODWizardCreationPage.

WOComponent submitAction (  )  throws Throwable

String tabScriptString (  ) 

Constructs a JavaScript string that will give a particular field focus when the page is loaded. If the key firstResponderKey from the d2wContext resolves, the script will attempt to focus on the form field belonging to the property key named by the firstResponderKey. Otherwise, the script will just focus on the first field in the form.

Note that the key useFocus must resolve to true in order for the script to be generated.

Returns:
a JavaScript string.

Reimplemented in ERD2WTabInspectPage.

void takeValuesFromRequest ( WORequest  r,
WOContext  c 
)

Overridden from the parent for better logging. Also clears validation errors

Reimplemented from ERD2WPage.

boolean tryToSaveChanges ( boolean  validateObject  ) 

String urlForCurrentState (  ) 

Implementation of the ERXComponentActionRedirector.Restorable interface. This implementation creates an URL with the name of the current pageConfiguration as a direct action, which assumes a ERD2WDirectAction as the default direct action. Subclasses need to implement more sensible behaviour.

Returns:
url for the current page

Reimplemented from ERD2WPage.

Reimplemented in ERD2WTabInspectPage.


Member Data Documentation

boolean _objectWasSaved [protected]

WOComponent _previousPage [private]

final String firstResponderContainerName = "FirstResponderContainer" [static, protected]

final Logger log = Logger.getLogger(ERD2WInspectPage.class) [static]

logging support

Reimplemented from ERD2WPage.

Reimplemented in ERD2WTabInspectPage, and ERD2WWizardCreationPage.

final Logger validationCat = Logger.getLogger(ERD2WInspectPage.class+".validation") [static]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:55 2012 for Project Wonder by  doxygen 1.5.8