Project Wonder 5.0

er.modern.look.pages
Class ERMODEditRelationshipPage

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.modern.look.pages.ERMODEditRelationshipPage
All Implemented Interfaces:
com.webobjects.appserver.WOActionResults, com.webobjects.directtoweb.EditRelationshipPageInterface, com.webobjects.directtoweb.generation.DTWGeneration, com.webobjects.directtoweb.SelectPageInterface, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation, ERDBranchInterface, ERDUserInfoInterface, ERXComponentActionRedirector.Restorable, ERXExceptionHolder, ERMEditRelationshipPageInterface, java.io.Serializable, java.lang.Cloneable

public class ERMODEditRelationshipPage
extends ERD2WPage
implements ERMEditRelationshipPageInterface, com.webobjects.directtoweb.SelectPageInterface

An improved EditRelationshipPage that supports embedding and inline editing tasks.

See Also:
Serialized Form
Author:
davidleber
D2W Keys
editConfigurationNameeditConfigurationName
           
isEntityEditableisEntityEditable
           
readOnlyreadOnly
           
relationshipRestrictingQualifier - An additional qualifier that can be used to restrict the objects shown in the relationship (see: ERDDelayedExtraQualifierAssignment). Useful if you have a value like: isDeleted that you wish to respect.
           

Nested Class Summary
static interface ERMODEditRelationshipPage.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
 boolean isRelationshipToMany
           
 com.webobjects.appserver.WOComponent nextPage
           
 com.webobjects.directtoweb.NextPageDelegate nextPageDelegate
           
 
Fields inherited from class er.directtoweb.pages.ERD2WPage
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, log, 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
ERMODEditRelationshipPage(com.webobjects.appserver.WOContext context)
           
 
Method Summary
 void awake()
          Overridden to lock the page's editingContext, if there is any present.
 com.webobjects.eocontrol.EODataSource dataSource()
          DataSource for the relationship.
 boolean displayList()
          Controls whether the inline list page is displayed.
 boolean displayNew()
          Controls whether the inline eidt/create page is displayed.
 boolean displayQuery()
          Controls whether the inline query page is displayed.
 com.webobjects.appserver.WOComponent displayQueryAction()
          Perform the displayQueryAction.
 java.lang.String inlineTask()
           
 java.lang.String inspectConfiguration()
          Returns the name of the current inline page configuration
 boolean isListEmpty()
          Checks if the current list is empty.
 int listSize()
          The number of objects in the list.
 com.webobjects.eocontrol.EOEnterpriseObject masterObject()
           
 com.webobjects.foundation.NSArray<?> masterObjectAndRelationshipKey()
          Returns an array containing the master object (index 0) and relationship key (index 1).
 com.webobjects.appserver.WOComponent newObjectAction()
          Performs the newObjectAction.
 com.webobjects.eocontrol.EOEnterpriseObject objectToAddToRelationship()
           
 com.webobjects.appserver.WOComponent queryAction()
          Performs the queryAction.
 void relatedObjectDidChange(com.webobjects.foundation.NSNotification notif)
          Called when an ERMDActionButton changes the related object.
 com.webobjects.appserver.WODisplayGroup relationshipDisplayGroup()
          Display group for the related objects
 java.lang.String relationshipKey()
           
 com.webobjects.appserver.WOComponent returnAction()
          Perform the returnAction.
 com.webobjects.appserver.WOComponent saveAction()
          Performs the saveAction.
 com.webobjects.appserver.WOComponent selectAction()
          Perform the selectAction.
 com.webobjects.eocontrol.EODataSource selectDataSource()
           
 com.webobjects.eocontrol.EOEnterpriseObject selectedObject()
          Returns the current selected Object.
 void setDataSource(com.webobjects.eocontrol.EODataSource ds)
           
 void setInlineTask(java.lang.String task)
           
 void setInlineTaskSafely(java.lang.String task)
           
 void setMasterObject(com.webobjects.eocontrol.EOEnterpriseObject masterObject)
           
 void setMasterObjectAndRelationshipKey(com.webobjects.eocontrol.EOEnterpriseObject eo, java.lang.String relationshipKey)
          Set the master object and relationship key.
 void setMasterObjectAndRelationshipKey(com.webobjects.foundation.NSArray<?> a)
          Sets the master object and relationship key.
 void setObjectToAddToRelationship(com.webobjects.eocontrol.EOEnterpriseObject objectToAddTorRelationship)
           
 void setRelationshipDisplayGroup(com.webobjects.appserver.WODisplayGroup relationshipDisplayGroup)
           
 void setRelationshipKey(java.lang.String key)
           
 void setSelectDataSource(com.webobjects.eocontrol.EODataSource selectDataSource)
           
 void setSelectedObject(com.webobjects.eocontrol.EOEnterpriseObject eo)
          Sets the current selected Object.
 void sleep()
          Overridden to unlock the page's editingContext, if there is any present.
 
Methods inherited from class er.directtoweb.pages.ERD2WPage
aggregateEventDurationForCurrentPropertyKey, allConfigurationNames, appendToResponse, 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, nextPage, nextPageDelegate, nextPageFromDelegate, now, object, pageController, pageWithName, pageWrapperName, sectionsContents, sectionsForCurrentTab, self, setBranch, setCurrentSection, setCurrentTab, setD2wContext, setEditingContext, setErrorMessage, setErrorMessages, setLocalContext, setNextPage, setNextPageDelegate, setObject, setPageController, settings, shouldCollectValidationExceptions, shouldDisplayDetailedPageMetrics, shouldDisplayPageMetricsSummary, shouldPropagateExceptions, shouldSetFailedValidationValue, showCancel, statsForPage, statsKeyForCurrentPropertyKey, statsKeyPrefix, tabSectionsContents, tabSectionsContentsFromRuleResult, takeValuesFromRequest, urlForCurrentState, userInfo, userPreferencesValueForKey, userPreferencesValueForPageConfigurationKey, validationFailedWithException
 
Methods inherited from class com.webobjects.directtoweb.D2WPage
alternateRowColor, 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.EditRelationshipPageInterface
setNextPage, setNextPageDelegate
 
Methods inherited from interface com.webobjects.directtoweb.SelectPageInterface
nextPageDelegate, setNextPageDelegate
 

Field Detail

isRelationshipToMany

public boolean isRelationshipToMany

nextPage

public com.webobjects.appserver.WOComponent nextPage

nextPageDelegate

public com.webobjects.directtoweb.NextPageDelegate nextPageDelegate
Constructor Detail

ERMODEditRelationshipPage

public ERMODEditRelationshipPage(com.webobjects.appserver.WOContext context)
Method Detail

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

sleep

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

Overrides:
sleep in class ERD2WPage

displayQueryAction

public com.webobjects.appserver.WOComponent displayQueryAction()
Perform the displayQueryAction. Sets the inline task to 'query'.


newObjectAction

public com.webobjects.appserver.WOComponent newObjectAction()
Performs the newObjectAction. Creates a new object and sets the inline task to 'create'

Returns:

queryAction

public com.webobjects.appserver.WOComponent queryAction()
Performs the queryAction. Sets the inline task to 'list'

Returns:

saveAction

public com.webobjects.appserver.WOComponent saveAction()
Performs the saveAction. Called by inline edit or create pages.

Returns:

selectAction

public com.webobjects.appserver.WOComponent selectAction()
Perform the selectAction. Called by inline select page.

Returns:

returnAction

public com.webobjects.appserver.WOComponent returnAction()
Perform the returnAction. Called when the page is a non embedded page is returning to the originating edit page.

Returns:

relatedObjectDidChange

public void relatedObjectDidChange(com.webobjects.foundation.NSNotification notif)
Called when an ERMDActionButton changes the related object. Forces the displayGroup to fetch.


displayQuery

public boolean displayQuery()
Controls whether the inline query page is displayed.


displayNew

public boolean displayNew()
Controls whether the inline eidt/create page is displayed.


displayList

public boolean displayList()
Controls whether the inline list page is displayed.


inspectConfiguration

public java.lang.String inspectConfiguration()
Returns the name of the current inline page configuration

Returns:

selectedObject

public com.webobjects.eocontrol.EOEnterpriseObject selectedObject()
Returns the current selected Object. Required by the SelectPageInterface

Specified by:
selectedObject in interface com.webobjects.directtoweb.SelectPageInterface

setSelectedObject

public void setSelectedObject(com.webobjects.eocontrol.EOEnterpriseObject eo)
Sets the current selected Object. Required by the SelectPageInterface

Specified by:
setSelectedObject in interface com.webobjects.directtoweb.SelectPageInterface

masterObjectAndRelationshipKey

public com.webobjects.foundation.NSArray<?> masterObjectAndRelationshipKey()
Returns an array containing the master object (index 0) and relationship key (index 1). Required by the ERMEditRelationshipPageInterface

Specified by:
masterObjectAndRelationshipKey in interface ERMEditRelationshipPageInterface
Returns:
NSArray containing the master object (index 0) and relationship key (index 1).

setMasterObjectAndRelationshipKey

public void setMasterObjectAndRelationshipKey(com.webobjects.foundation.NSArray<?> a)
Sets the master object and relationship key. Takes an NSArray containing the master object (index 0) and relationship key (index 1). Required by the ERMEditRelationhsipPageInterface

Specified by:
setMasterObjectAndRelationshipKey in interface ERMEditRelationshipPageInterface
Parameters:
NSArray - containing the master object (index 0) and relationship key (index 1).

setMasterObjectAndRelationshipKey

public void setMasterObjectAndRelationshipKey(com.webobjects.eocontrol.EOEnterpriseObject eo,
                                              java.lang.String relationshipKey)
Set the master object and relationship key.

Specified by:
setMasterObjectAndRelationshipKey in interface com.webobjects.directtoweb.EditRelationshipPageInterface
Parameters:
EOEnterpriseObject - the master object
String - the relationship key

inlineTask

public java.lang.String inlineTask()

setInlineTask

public void setInlineTask(java.lang.String task)

setInlineTaskSafely

public void setInlineTaskSafely(java.lang.String task)

relationshipKey

public java.lang.String relationshipKey()

setRelationshipKey

public void setRelationshipKey(java.lang.String key)

dataSource

public com.webobjects.eocontrol.EODataSource dataSource()
DataSource for the relationship.

Overrides:
dataSource in class com.webobjects.directtoweb.D2WPage
Returns:
EODataSource an EODetailDataSource created from the masterObject and relationshipKey.

setDataSource

public void setDataSource(com.webobjects.eocontrol.EODataSource ds)
Specified by:
setDataSource in interface com.webobjects.directtoweb.SelectPageInterface
Overrides:
setDataSource in class ERD2WPage

objectToAddToRelationship

public com.webobjects.eocontrol.EOEnterpriseObject objectToAddToRelationship()

setObjectToAddToRelationship

public void setObjectToAddToRelationship(com.webobjects.eocontrol.EOEnterpriseObject objectToAddTorRelationship)

relationshipDisplayGroup

public com.webobjects.appserver.WODisplayGroup relationshipDisplayGroup()
Display group for the related objects

Returns:
WODisplayGroup lazily instantiated display group.

setRelationshipDisplayGroup

public void setRelationshipDisplayGroup(com.webobjects.appserver.WODisplayGroup relationshipDisplayGroup)

selectDataSource

public com.webobjects.eocontrol.EODataSource selectDataSource()

setSelectDataSource

public void setSelectDataSource(com.webobjects.eocontrol.EODataSource selectDataSource)

masterObject

public com.webobjects.eocontrol.EOEnterpriseObject masterObject()

setMasterObject

public void setMasterObject(com.webobjects.eocontrol.EOEnterpriseObject masterObject)

isListEmpty

public boolean isListEmpty()
Checks if the current list is empty.


listSize

public int listSize()
The number of objects in the list.


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

Copyright © 2002 – 2007 Project Wonder.