public class ERD2WInspectPage extends ERD2WPage implements com.webobjects.directtoweb.InspectPageInterface, ERDEditPageInterface, ERDObjectSaverInterface, ERDFollowPageInterface, ERXComponentActionRedirector.Restorable
| Name | Description |
|---|---|
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 |
ERD2WPage.Keys, ERD2WPage.ValidationDelegatecom.webobjects.appserver.WOComponent._EventLoggingEnabler, com.webobjects.appserver.WOComponent.Eventcom.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utilitycom.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.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessorcom.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_objectWasSaved |
protected static String |
firstResponderContainerName |
static Logger |
log
logging support
|
static Logger |
validationCat |
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationDelegate, validationDelegateInited, validationLog_eo, _localContext, currentObjectKey_Extension, _IsEventLoggingEnabled, _keyAssociations| Constructor and Description |
|---|
ERD2WInspectPage(com.webobjects.appserver.WOContext context)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.webobjects.appserver.WOComponent |
cancelAction() |
com.webobjects.appserver.WOComponent |
deleteAction() |
boolean |
doesNotHaveForm() |
com.webobjects.appserver.WOComponent |
editAction() |
boolean |
hasPropertyName() |
com.webobjects.appserver.WOComponent |
nextPage() |
com.webobjects.appserver.WOComponent |
nextPage(boolean doConfirm) |
boolean |
objectWasSaved() |
String |
otherTagStringsForPropertyKeyComponentCell()
Generates other strings to be included in the WOGenericContainer tag for the propertyKey component cell.
|
void |
performAdditionalValidations() |
com.webobjects.appserver.WOComponent |
previousPage() |
com.webobjects.appserver.WOComponent |
printerFriendlyVersion() |
String |
saveButtonFileName() |
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. |
void |
setObject(com.webobjects.eocontrol.EOEnterpriseObject eoenterpriseobject)
Implementation of the
InspectPageInterface |
void |
setPreviousPage(com.webobjects.appserver.WOComponent existingPageName) |
boolean |
shouldCollectValidationExceptions()
Should exceptions also be handled here or only handled by the parent.
|
boolean |
shouldRecoverFromOptimisticLockingFailure() |
boolean |
shouldRenderBorder() |
boolean |
shouldRevertChanges() |
boolean |
shouldRevertUponSaveFailure() |
boolean |
shouldSaveChanges() |
boolean |
shouldShowActionButtons() |
boolean |
shouldShowCancelButton() |
boolean |
shouldShowSubmitButton() |
boolean |
shouldValidateBeforeSave() |
boolean |
showCancel() |
com.webobjects.appserver.WOComponent |
submitAction() |
String |
tabScriptString()
Constructs a JavaScript string that will give a particular field focus when the page is loaded.
|
void |
takeValuesFromRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
Overridden from the parent for better logging.
|
boolean |
tryToSaveChanges(boolean validateObject) |
String |
urlForCurrentState()
Implementation of the
ERXComponentActionRedirector.Restorable
interface. |
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, errorMessageForPropertyKey, 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, setValidationDelegate, shouldDisplayDetailedPageMetrics, shouldDisplayPageMetricsSummary, shouldPropagateExceptions, shouldSetFailedValidationValue, sleep, statsForPage, statsKeyForCurrentPropertyKey, statsKeyPrefix, tabSectionsContents, tabSectionsContentsFromRuleResult, userInfo, userPreferencesValueForKey, userPreferencesValueForPageConfigurationKey, validationDelegate, validationFailedWithExceptionalternateRowColor, dataSource, extraBindings, replacementAssociationForAssociation, setExtraBindingsallEntities, 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__valueForBinding, _associationWithName, _awakeInContext, _childTemplate, _cleanUpStatelessComponent, _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, setVariableValueForName, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNameequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitobjectpublic static final Logger log
public static final Logger validationCat
protected static final String firstResponderContainerName
protected boolean _objectWasSaved
public ERD2WInspectPage(com.webobjects.appserver.WOContext context)
context - current contextpublic String urlForCurrentState()
ERD2WPageERXComponentActionRedirector.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.urlForCurrentState in interface ERXComponentActionRedirector.RestorableurlForCurrentState in class ERD2WPagepublic boolean objectWasSaved()
objectWasSaved in interface ERDObjectSaverInterfacepublic com.webobjects.appserver.WOComponent previousPage()
previousPage in interface ERDFollowPageInterfacepublic void setPreviousPage(com.webobjects.appserver.WOComponent existingPageName)
setPreviousPage in interface ERDFollowPageInterfacepublic com.webobjects.appserver.WOComponent nextPage()
public com.webobjects.appserver.WOComponent nextPage(boolean doConfirm)
public com.webobjects.appserver.WOComponent editAction()
public com.webobjects.appserver.WOComponent deleteAction()
throws Throwable
Throwablepublic com.webobjects.appserver.WOComponent cancelAction()
public boolean shouldRenderBorder()
public boolean shouldShowActionButtons()
public boolean shouldShowCancelButton()
public boolean shouldShowSubmitButton()
public boolean showCancel()
showCancel in class ERD2WPagepublic boolean doesNotHaveForm()
public void setObject(com.webobjects.eocontrol.EOEnterpriseObject eoenterpriseobject)
ERD2WPageInspectPageInterfacepublic void performAdditionalValidations()
public void takeValuesFromRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
ERD2WPagetakeValuesFromRequest in class ERD2WPagepublic boolean hasPropertyName()
public boolean shouldRevertChanges()
public boolean shouldSaveChanges()
public boolean shouldValidateBeforeSave()
public boolean shouldCollectValidationExceptions()
ERD2WPageshouldCollectValidationExceptions in class ERD2WPagepublic boolean shouldRecoverFromOptimisticLockingFailure()
public boolean shouldRevertUponSaveFailure()
public boolean tryToSaveChanges(boolean validateObject)
public com.webobjects.appserver.WOComponent submitAction()
throws Throwable
Throwablepublic String saveButtonFileName()
public com.webobjects.appserver.WOComponent printerFriendlyVersion()
public String otherTagStringsForPropertyKeyComponentCell()
firstResponderKey to mark the cell where the propertyKey is that named
by the firstResponderKey so that the "focusing" JavaScript tabScriptString
can identify it.td tag for the propertyKey component cell.public 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.
public 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.
Copyright © 2002 – 2020 Project Wonder.