public class ERD2WInspectPage extends ERD2WPage implements com.webobjects.directtoweb.InspectPageInterface, ERDEditPageInterface, ERDObjectSaverInterface, ERDFollowPageInterface, ERXComponentActionRedirector.Restorable
| 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 |
ERD2WPage.Keys, ERD2WPage.ValidationDelegateWOComponent._EventLoggingEnabler, WOComponent.EventNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_objectWasSaved |
protected static java.lang.String |
firstResponderContainerName |
static org.apache.log4j.Logger |
log
logging support
|
static org.apache.log4j.Logger |
validationCat |
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, validationDelegate, validationDelegateInited, validationLog_eo, _localContext, currentObjectKey_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_CLASS| Constructor and Description |
|---|
ERD2WInspectPage(WOContext context)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
WOComponent |
cancelAction() |
WOComponent |
deleteAction() |
boolean |
doesNotHaveForm() |
WOComponent |
editAction() |
boolean |
hasPropertyName() |
WOComponent |
nextPage() |
WOComponent |
nextPage(boolean doConfirm) |
boolean |
objectWasSaved() |
java.lang.String |
otherTagStringsForPropertyKeyComponentCell()
Generates other strings to be included in the WOGenericContainer tag for the propertyKey component cell.
|
void |
performAdditionalValidations() |
WOComponent |
previousPage() |
WOComponent |
printerFriendlyVersion() |
java.lang.String |
saveButtonFileName() |
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. |
void |
setObject(EOEnterpriseObject eoenterpriseobject)
Implementation of the
InspectPageInterface |
void |
setPreviousPage(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() |
WOComponent |
submitAction() |
java.lang.String |
tabScriptString()
Constructs a JavaScript string that will give a particular field focus when the page is loaded.
|
void |
takeValuesFromRequest(WORequest request,
WOContext context)
Overridden from the parent for better logging.
|
boolean |
tryToSaveChanges(boolean validateObject) |
java.lang.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 org.apache.log4j.Logger log
public static final org.apache.log4j.Logger validationCat
protected static final java.lang.String firstResponderContainerName
protected boolean _objectWasSaved
public ERD2WInspectPage(WOContext context)
context - current contextpublic java.lang.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 WOComponent previousPage()
previousPage in interface ERDFollowPageInterfacepublic void setPreviousPage(WOComponent existingPageName)
setPreviousPage in interface ERDFollowPageInterfacepublic WOComponent nextPage()
public WOComponent nextPage(boolean doConfirm)
public WOComponent editAction()
public WOComponent deleteAction() throws java.lang.Throwable
java.lang.Throwablepublic 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(EOEnterpriseObject eoenterpriseobject)
ERD2WPageInspectPageInterfacepublic void performAdditionalValidations()
public void takeValuesFromRequest(WORequest request, 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 WOComponent submitAction() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String saveButtonFileName()
public WOComponent printerFriendlyVersion()
public java.lang.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 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.
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.
Copyright © 2002 – 2022 Project Wonder.