er.directtoweb.pages
Class ERD2WInspectPage
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
com.webobjects.directtoweb.D2WComponent
com.webobjects.directtoweb.D2WPage
er.directtoweb.pages.ERD2WPage
er.directtoweb.pages.ERD2WInspectPage
- All Implemented Interfaces:
- com.webobjects.appserver.WOActionResults, com.webobjects.directtoweb.EditPageInterface, com.webobjects.directtoweb.generation.DTWGeneration, com.webobjects.directtoweb.InspectPageInterface, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation, ERDBranchInterface, ERDEditPageInterface, ERDFollowPageInterface, ERDObjectSaverInterface, ERDUserInfoInterface, ERXComponentActionRedirector.Restorable, ERXExceptionHolder, java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- ERD2WCompactInspectPageTemplate, ERD2WInspectPageTemplate, ERD2WPrinterFriendlyInspectPageTemplate, ERD2WTabInspectPage, ERNEUInspectPage
public class ERD2WInspectPage
- extends ERD2WPage
- implements com.webobjects.directtoweb.InspectPageInterface, ERDEditPageInterface, ERDObjectSaverInterface, ERDFollowPageInterface, ERXComponentActionRedirector.Restorable
Superclass for all inspecting/editing ERD2W templates.
- See Also:
- Serialized Form
D2W Keys |
inspectConfirmConfigurationName | inspectConfirmConfigurationName |
object | object |
editConfigurationName | editConfigurationName |
useNestedEditingContext | useNestedEditingContext |
shouldRenderBorder | shouldRenderBorder |
shouldShowActionButtons | shouldShowActionButtons |
shouldShowCancelButtons | shouldShowCancelButtons |
shouldShowSubmitButton | shouldShowSubmitButton |
hasForm | hasForm |
validationKeys | validationKeys |
shouldRevertChanges | shouldRevertChanges |
shouldSaveChanges | shouldSaveChanges |
shoudlvalidateBeforeSave | shoudlvalidateBeforeSave |
shouldCollectValidationExceptions | shouldCollectValidationExceptions |
shouldRecoverFromOptimisticLockingFailure | shouldRecoverFromOptimisticLockingFailure |
shouldRevertUponSaveFailure | shouldRevertUponSaveFailure |
firstResponder | firstResponder |
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
com.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Event |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding |
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.Null, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException |
Fields inherited from class er.directtoweb.pages.ERD2WPage |
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationLog |
Fields inherited from class com.webobjects.directtoweb.D2WComponent |
_eo, _localContext, currentObjectKey |
Fields inherited from class com.webobjects.appserver.WOComponent |
_Extension, _IsEventLoggingEnabled, _keyAssociations |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
Fields inherited from interface com.webobjects.foundation.NSValidation |
_CLASS |
Constructor Summary |
ERD2WInspectPage(com.webobjects.appserver.WOContext context)
Public constructor |
Methods inherited from class er.directtoweb.pages.ERD2WPage |
aggregateEventDurationForCurrentPropertyKey, allConfigurationNames, appendToResponse, awake, branch, branchChoices, branchName, clearTabSectionsContents, clearValidationFailed, clickToOpenEnabled, cssClassForPageContainerElement, cssClassForPropertyKey, cssClassForPropertyName, currentSection, currentSectionKeys, currentTab, d2wComponentNameDebuggingEnabled, d2wContext, d2wCurrentComponentName, d2wDebuggingEnabled, descriptionForResponse, displayVariant, editingContext, errorKeyOrder, errorMessage, errorMessages, hasActualChanges, hasBranchChoices, hasErrors, hasValidationExceptionForPropertyKey, inlineStyleDeclarationForPropertyKey, inlineStyleDeclarationForPropertyName, invokeAction, isEmbedded, isEntityEditable, isEntityReadOnly, isKeyOmitted, isObjectDeleteable, isObjectEditable, isObjectInspectable, isTopLevelPage, latestEntryForCurrentPropertyKey, makeStatsKey, nextPageDelegate, nextPageFromDelegate, now, object, pageController, pageWithName, pageWrapperName, sectionsContents, sectionsForCurrentTab, self, setBranch, setCurrentSection, setCurrentTab, setD2wContext, setDataSource, setEditingContext, setErrorMessage, setErrorMessages, setLocalContext, setNextPage, setNextPageDelegate, setPageController, settings, shouldDisplayDetailedPageMetrics, shouldDisplayPageMetricsSummary, shouldPropagateExceptions, shouldSetFailedValidationValue, sleep, statsForPage, statsKeyForCurrentPropertyKey, statsKeyPrefix, tabSectionsContents, tabSectionsContentsFromRuleResult, userInfo, userPreferencesValueForKey, userPreferencesValueForPageConfigurationKey, validationFailedWithException |
Methods inherited from class com.webobjects.directtoweb.D2WPage |
alternateRowColor, dataSource, extraBindings, finalize, replacementAssociationForAssociation, setExtraBindings |
Methods inherited from class com.webobjects.directtoweb.D2WComponent |
allEntities, allowCollapsing, applicationPort, assistantPort, attribute, backgroundColorForHeaderRow, backgroundColorForPage, backgroundColorForTable, backgroundColorForTableDark, backgroundColorForTableLight, color, currentSettings, currentUrl, d2wContextVisibleEntityNamesCountPlus1, defaultRowspan, displayNameForKeyWhenRelationship, displayNameForProperty, displayPropertyKeys, dynamicPages, entity, entityName, formatter, generationReplacementFor, generationReplacementForCurrentObject, hasCustomKey, hasEntity, hasNoColor, homeClicked, homeHref, isEditing, isEntityReadOnly, isLiveAssistantEnabled, isNotBoldAsBoolean, isNotItalicAsBoolean, isPropertyAnAttribute, isWebAssistantActive, isWebAssistantConnected, isWebAssistantEnabled, keyForGenerationReplacementForVariableNamed, keyWhenRelationship, lastUrl, length, localContext, logout, objectPropertyValue, objectPropertyValueIsNonNull, pageTitle, property, propertyKey, propertyValueClassName, relationship, resourcePathURL, sessionID, setCurrentSettings, setDynamicPages, setEntities, setEntity, setEntityName, setPropertyKey, setResourcePathURL, setTask, setTasks, showBanner, showWebAssistant, submitActionName, target, task, tasks, visibleEntityNames |
Methods inherited from class com.webobjects.appserver.WOComponent |
_associationWithName, _awakeInContext, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForKey, valueForKeyPath |
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 |
log
public static final org.apache.log4j.Logger log
- logging support
validationCat
public static final org.apache.log4j.Logger validationCat
firstResponderContainerName
protected static final java.lang.String firstResponderContainerName
- See Also:
- Constant Field Values
_objectWasSaved
protected boolean _objectWasSaved
ERD2WInspectPage
public ERD2WInspectPage(com.webobjects.appserver.WOContext context)
- Public constructor
- Parameters:
context
- current context
urlForCurrentState
public java.lang.String urlForCurrentState()
- Description copied from class:
ERD2WPage
- 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.
- Specified by:
urlForCurrentState
in interface ERXComponentActionRedirector.Restorable
- Overrides:
urlForCurrentState
in class ERD2WPage
- Returns:
- url for the current page
objectWasSaved
public boolean objectWasSaved()
- Specified by:
objectWasSaved
in interface ERDObjectSaverInterface
previousPage
public com.webobjects.appserver.WOComponent previousPage()
- Specified by:
previousPage
in interface ERDFollowPageInterface
setPreviousPage
public void setPreviousPage(com.webobjects.appserver.WOComponent existingPageName)
- Specified by:
setPreviousPage
in interface ERDFollowPageInterface
nextPage
public com.webobjects.appserver.WOComponent nextPage()
- Overrides:
nextPage
in class ERD2WPage
nextPage
public com.webobjects.appserver.WOComponent nextPage(boolean doConfirm)
editAction
public com.webobjects.appserver.WOComponent editAction()
deleteAction
public com.webobjects.appserver.WOComponent deleteAction()
throws java.lang.Throwable
- Throws:
java.lang.Throwable
cancelAction
public com.webobjects.appserver.WOComponent cancelAction()
shouldRenderBorder
public boolean shouldRenderBorder()
shouldShowActionButtons
public boolean shouldShowActionButtons()
shouldShowCancelButton
public boolean shouldShowCancelButton()
shouldShowSubmitButton
public boolean shouldShowSubmitButton()
showCancel
public boolean showCancel()
- Overrides:
showCancel
in class ERD2WPage
doesNotHaveForm
public boolean doesNotHaveForm()
setObject
public void setObject(com.webobjects.eocontrol.EOEnterpriseObject eoenterpriseobject)
- Description copied from class:
ERD2WPage
- Implementation of the
InspectPageInterface
- Specified by:
setObject
in interface com.webobjects.directtoweb.InspectPageInterface
- Overrides:
setObject
in class ERD2WPage
performAdditionalValidations
public void performAdditionalValidations()
takeValuesFromRequest
public void takeValuesFromRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
- Description copied from class:
ERD2WPage
- Overridden from the parent for better logging. Also clears validation
errors
- Overrides:
takeValuesFromRequest
in class ERD2WPage
hasPropertyName
public boolean hasPropertyName()
shouldRevertChanges
public boolean shouldRevertChanges()
shouldSaveChanges
public boolean shouldSaveChanges()
shouldValidateBeforeSave
public boolean shouldValidateBeforeSave()
shouldCollectValidationExceptions
public boolean shouldCollectValidationExceptions()
- Description copied from class:
ERD2WPage
- Should exceptions also be handled here or only handled by the parent.
- Overrides:
shouldCollectValidationExceptions
in class ERD2WPage
shouldRecoverFromOptimisticLockingFailure
public boolean shouldRecoverFromOptimisticLockingFailure()
shouldRevertUponSaveFailure
public boolean shouldRevertUponSaveFailure()
tryToSaveChanges
public boolean tryToSaveChanges(boolean validateObject)
submitAction
public com.webobjects.appserver.WOComponent submitAction()
throws java.lang.Throwable
- Throws:
java.lang.Throwable
saveButtonFileName
public java.lang.String saveButtonFileName()
printerFriendlyVersion
public com.webobjects.appserver.WOComponent printerFriendlyVersion()
otherTagStringsForPropertyKeyComponentCell
public java.lang.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.
tabScriptString
public java.lang.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.
scriptForFirstResponderActivation
public java.lang.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.
Copyright © 2002 – 2007 Project Wonder.
|