Project Wonder 5.0

er.directtoweb.pages
Class ERD2WTabInspectPage

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by com.webobjects.directtoweb.D2WComponent
              extended by com.webobjects.directtoweb.D2WPage
                  extended by er.directtoweb.pages.ERD2WPage
                      extended by er.directtoweb.pages.ERD2WInspectPage
                          extended by er.directtoweb.pages.ERD2WTabInspectPage
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, ERDTabEditPageInterface, ERDUserInfoInterface, ERXComponentActionRedirector.Restorable, ERXExceptionHolder, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
ERD2WTabInspectPageTemplate, ERD2WWizardCreationPage, ERDIVEditPage, ERDIVInspectPage, ERLITEditPage, ERLITInspectPage, ERNEUTabInspectPage

public class ERD2WTabInspectPage
extends ERD2WInspectPage
implements ERDTabEditPageInterface

Superclass for all tab and wizard pages.

See Also:
Serialized Form
D2W Keys
firstResponderfirstResponder
           
tabComponentNametabComponentName
           

Nested Class Summary
 
Nested classes/interfaces inherited from class er.directtoweb.pages.ERD2WPage
ERD2WPage.Keys
 
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
 
Field Summary
protected  java.lang.Integer _tabNumber
           
static org.apache.log4j.Logger log
          logging support
static org.apache.log4j.Logger validationLog
           
static java.lang.String WILL_SWITCH_TAB
           
 
Fields inherited from class er.directtoweb.pages.ERD2WInspectPage
_objectWasSaved, firstResponderContainerName, validationCat
 
Fields inherited from class er.directtoweb.pages.ERD2WPage
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions
 
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
ERD2WTabInspectPage(com.webobjects.appserver.WOContext c)
           
 
Method Summary
 void appendToResponse(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
          Overridden from the parent for better logging.
 void awake()
          Overridden to lock the page's editingContext, if there is any present.
 boolean currentTabIsFirstTab()
           
 boolean currentTabIsLastTab()
           
 boolean disableCancel()
           
 boolean disableNext()
           
 boolean disablePrevious()
           
 boolean disableSave()
           
 com.webobjects.appserver.WOComponent nextTab()
          Deprecated. use nextTabAction
 com.webobjects.appserver.WOComponent nextTabAction()
           
 com.webobjects.appserver.WOComponent previousTab()
          Deprecated. use previousTabAction
 com.webobjects.appserver.WOComponent previousTabAction()
           
 com.webobjects.appserver.WOComponent printerFriendlyVersion()
           
 void setTabByName(java.lang.String tabName)
           
 void setTabNumber(java.lang.Integer newTabNumber)
           
 boolean shouldNotSwitchIfHasChanges()
           
 boolean shouldSaveChangesForTab()
           
 boolean shouldShowNextButton()
           
 boolean shouldShowNextPreviousButtons()
           
 boolean shouldShowPreviousButton()
           
 boolean switchTabAction()
           
 java.lang.String switchTabActionName()
           
 java.lang.String tabComponentName()
           
 java.lang.Integer tabNumber()
           
 java.lang.String tabScriptString()
          Constructs a JavaScript string that will give a particular field focus when the page is loaded.
 java.lang.String urlForCurrentState()
          Implementation of the ERXComponentActionRedirector.Restorable interface.
 boolean useSubmitImages()
           
 boolean useTabImages()
           
 boolean useTabSectionImages()
           
 
Methods inherited from class er.directtoweb.pages.ERD2WInspectPage
cancelAction, deleteAction, doesNotHaveForm, editAction, hasPropertyName, nextPage, nextPage, objectWasSaved, otherTagStringsForPropertyKeyComponentCell, performAdditionalValidations, previousPage, saveButtonFileName, scriptForFirstResponderActivation, setObject, setPreviousPage, shouldCollectValidationExceptions, shouldRecoverFromOptimisticLockingFailure, shouldRenderBorder, shouldRevertChanges, shouldRevertUponSaveFailure, shouldSaveChanges, shouldShowActionButtons, shouldShowCancelButton, shouldShowSubmitButton, shouldValidateBeforeSave, showCancel, submitAction, takeValuesFromRequest, tryToSaveChanges
 
Methods inherited from class er.directtoweb.pages.ERD2WPage
aggregateEventDurationForCurrentPropertyKey, allConfigurationNames, 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 er.directtoweb.interfaces.ERDEditPageInterface
object
 
Methods inherited from interface com.webobjects.directtoweb.InspectPageInterface
setNextPage, setNextPageDelegate, setObject
 

Field Detail

WILL_SWITCH_TAB

public static final java.lang.String WILL_SWITCH_TAB
See Also:
Constant Field Values

log

public static final org.apache.log4j.Logger log
logging support


validationLog

public static final org.apache.log4j.Logger validationLog

_tabNumber

protected java.lang.Integer _tabNumber
Constructor Detail

ERD2WTabInspectPage

public ERD2WTabInspectPage(com.webobjects.appserver.WOContext c)
Method Detail

switchTabActionName

public java.lang.String switchTabActionName()

switchTabAction

public boolean switchTabAction()

appendToResponse

public void appendToResponse(com.webobjects.appserver.WOResponse response,
                             com.webobjects.appserver.WOContext context)
Description copied from class: ERD2WPage
Overridden from the parent for better logging. Reports exceptions in the console for easier debugging.

Overrides:
appendToResponse in class ERD2WPage

tabNumber

public java.lang.Integer tabNumber()
Specified by:
tabNumber in interface ERDTabEditPageInterface

setTabNumber

public void setTabNumber(java.lang.Integer newTabNumber)
Specified by:
setTabNumber in interface ERDTabEditPageInterface

printerFriendlyVersion

public com.webobjects.appserver.WOComponent printerFriendlyVersion()
Overrides:
printerFriendlyVersion in class ERD2WInspectPage

awake

public void awake()
Description copied from class: ERD2WPage
Overridden to lock the page's editingContext, if there is any present.

Overrides:
awake in class ERD2WPage

setTabByName

public void setTabByName(java.lang.String tabName)

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 ERD2WInspectPage
Returns:
url for the current page

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.

Overrides:
tabScriptString in class ERD2WInspectPage
Returns:
a JavaScript string.

shouldNotSwitchIfHasChanges

public boolean shouldNotSwitchIfHasChanges()

shouldSaveChangesForTab

public boolean shouldSaveChangesForTab()

shouldShowNextPreviousButtons

public boolean shouldShowNextPreviousButtons()

shouldShowPreviousButton

public boolean shouldShowPreviousButton()

shouldShowNextButton

public boolean shouldShowNextButton()

useSubmitImages

public boolean useSubmitImages()

useTabImages

public boolean useTabImages()

useTabSectionImages

public boolean useTabSectionImages()

nextTab

public com.webobjects.appserver.WOComponent nextTab()
Deprecated. use nextTabAction


previousTab

public com.webobjects.appserver.WOComponent previousTab()
Deprecated. use previousTabAction


nextTabAction

public com.webobjects.appserver.WOComponent nextTabAction()

previousTabAction

public com.webobjects.appserver.WOComponent previousTabAction()

currentTabIsFirstTab

public boolean currentTabIsFirstTab()

currentTabIsLastTab

public boolean currentTabIsLastTab()

tabComponentName

public java.lang.String tabComponentName()

disablePrevious

public boolean disablePrevious()

disableNext

public boolean disableNext()

disableCancel

public boolean disableCancel()

disableSave

public boolean disableSave()

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.