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.ValidationDelegate
WOComponent._EventLoggingEnabler, WOComponent.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._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.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
protected boolean |
_objectWasSaved |
protected static 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, KeyPathSeparator
NullValue
_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() |
String |
otherTagStringsForPropertyKeyComponentCell()
Generates other strings to be included in the WOGenericContainer tag for the propertyKey component cell.
|
void |
performAdditionalValidations() |
WOComponent |
previousPage() |
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(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() |
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) |
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, validationFailedWithException
alternateRowColor, dataSource, extraBindings, replacementAssociationForAssociation, setExtraBindings
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
__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, variableWithName
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
object
public static final org.apache.log4j.Logger log
public static final org.apache.log4j.Logger validationCat
protected static final String firstResponderContainerName
protected boolean _objectWasSaved
public ERD2WInspectPage(WOContext context)
context
- current contextpublic String urlForCurrentState()
ERD2WPage
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.urlForCurrentState
in interface ERXComponentActionRedirector.Restorable
urlForCurrentState
in class ERD2WPage
public boolean objectWasSaved()
objectWasSaved
in interface ERDObjectSaverInterface
public WOComponent previousPage()
previousPage
in interface ERDFollowPageInterface
public void setPreviousPage(WOComponent existingPageName)
setPreviousPage
in interface ERDFollowPageInterface
public WOComponent nextPage()
public WOComponent nextPage(boolean doConfirm)
public WOComponent editAction()
public WOComponent deleteAction() throws Throwable
Throwable
public WOComponent cancelAction()
public boolean shouldRenderBorder()
public boolean shouldShowActionButtons()
public boolean shouldShowCancelButton()
public boolean shouldShowSubmitButton()
public boolean showCancel()
showCancel
in class ERD2WPage
public boolean doesNotHaveForm()
public void setObject(EOEnterpriseObject eoenterpriseobject)
ERD2WPage
InspectPageInterface
public void performAdditionalValidations()
public void takeValuesFromRequest(WORequest request, WOContext context)
ERD2WPage
takeValuesFromRequest
in class ERD2WPage
public boolean hasPropertyName()
public boolean shouldRevertChanges()
public boolean shouldSaveChanges()
public boolean shouldValidateBeforeSave()
public boolean shouldCollectValidationExceptions()
ERD2WPage
shouldCollectValidationExceptions
in class ERD2WPage
public boolean shouldRecoverFromOptimisticLockingFailure()
public boolean shouldRevertUponSaveFailure()
public boolean tryToSaveChanges(boolean validateObject)
public WOComponent submitAction() throws Throwable
Throwable
public String saveButtonFileName()
public 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 – 2024 Project Wonder.