Project Wonder 5.0

er.directtoweb.pages
Class ERD2WPickListPage

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.ERD2WListPage
                          extended by er.directtoweb.pages.ERD2WPickListPage
All Implemented Interfaces:
com.webobjects.appserver.WOActionResults, com.webobjects.directtoweb.EditRelationshipPageInterface, com.webobjects.directtoweb.generation.DTWGeneration, com.webobjects.directtoweb.ListPageInterface, com.webobjects.directtoweb.SelectPageInterface, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation, ERDBranchInterface, ERDListPageInterface, ERDPickPageInterface, ERDUserInfoInterface, ERXComponentActionRedirector.Restorable, ERXExceptionHolder, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
ERD2WPickListPageTemplate, ERNEUPickListPage

public class ERD2WPickListPage
extends ERD2WListPage
implements ERDPickPageInterface, com.webobjects.directtoweb.EditRelationshipPageInterface

Allows the selection of one or more objects from a set of EOs. Can also be used directly as a EditRelationshipPage for editing to-one and to-many relationships.

See Also:
Serialized Form
D2W Keys
showActionsshowActions
           
singleSelectionsingleSelection
           
restrictedChoiceKeyrestrictedChoiceKey
           
restrictingFetchSpecificationrestrictingFetchSpecification
           

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
 com.webobjects.eocontrol.EOEnterpriseObject _masterObject
          These are set when we are in edit-relationship mode.
 java.lang.String _relationshipKey
           
 java.lang.Boolean _singleSelection
          Caches if we are in single selection mode.
 java.lang.String dummy
          IE sometimes won't submit the form if it only has checkboxes, we bind this to a WOHiddenField.
static org.apache.log4j.Logger log
          logging support
 
Fields inherited from class er.directtoweb.pages.ERD2WListPage
_displayGroup, _hasToUpdate, _rowFlip, _sessionID, _shouldRefetch, dataSourceState, referenceEO
 
Fields inherited from class er.directtoweb.pages.ERD2WPage
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _pageController, _userInfo, errorKeyOrder, errorMessage, errorMessages, keyPathsWithValidationExceptions, 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
ERD2WPickListPage(com.webobjects.appserver.WOContext context)
          Public constructor.
 
Method Summary
 com.webobjects.appserver.WOComponent backAction()
           
 com.webobjects.appserver.WOComponent cancelPage()
           
 boolean checked()
           
protected  void didUpdate()
           
 com.webobjects.foundation.NSArray filteredObjects()
          The display group's objects, filtered by the display group qualifier (if any)
 com.webobjects.appserver.WOComponent selectAll()
           
 com.webobjects.appserver.WOComponent selectAllOnPage()
           
 com.webobjects.foundation.NSArray selectedObjects()
          The currently selected objects.
 java.lang.String selectionWidgetName()
           
 void setCancelPage(com.webobjects.appserver.WOComponent cp)
           
 void setChecked(boolean newChecked)
           
 void setChoices(com.webobjects.foundation.NSArray choices)
           
 void setMasterObjectAndRelationshipKey(com.webobjects.eocontrol.EOEnterpriseObject eo, java.lang.String relationshipName)
           
 void setSelectedObjects(com.webobjects.foundation.NSArray selectedObjects)
          Sets currently selected objects.
 boolean showCancel()
          Determines if the cancel button should be shown.
 boolean showSelectionActions()
           
 boolean singleSelection()
           
 com.webobjects.appserver.WOComponent unselectAll()
           
protected  void willUpdate()
           
 
Methods inherited from class er.directtoweb.pages.ERD2WListPage
_fetchDisplayGroup, alternatingColorForRow, alwaysRefetchList, appendToResponse, backgroundColorForRow, checkSortOrderingKeys, colorForRow, createDisplayGroup, defaultSortKey, deleteObjectAction, descriptionForResponse, displayGroup, editingContextDidSaveChanges, editObjectAction, fetchIfNecessary, formTargetJavaScriptUrl, inspectObjectAction, invokeAction, isEntityEditable, isEntityInspectable, isEntityPrintable, isEntityReadOnly, isListEmpty, isSelecting, isSelectingNotTopLevel, isValidSortKey, listSize, localInstanceOfObject, numberOfObjectsPerBatch, printerFriendlyVersion, printerFriendlyVersion, referenceEOs, selectedObject, selectObjectAction, sessionID, setBackgroundColorForRow, setDataSource, setSelectedObject, setSortOrderingsOnDisplayGroup, setupPhase, shouldShowBatchNavigation, shouldShowSelectAll, sortOrderings, takeValuesFromRequest, targetString, urlForCurrentState, useBatchingDisplayGroup, userPreferencesCanSpecifySorting, warmUpForDisplay
 
Methods inherited from class er.directtoweb.pages.ERD2WPage
aggregateEventDurationForCurrentPropertyKey, allConfigurationNames, awake, branch, branchChoices, branchName, clearTabSectionsContents, clearValidationFailed, clickToOpenEnabled, cssClassForPageContainerElement, cssClassForPropertyKey, cssClassForPropertyName, currentSection, currentSectionKeys, currentTab, d2wComponentNameDebuggingEnabled, d2wContext, d2wCurrentComponentName, d2wDebuggingEnabled, displayVariant, editingContext, errorKeyOrder, errorMessage, errorMessages, hasActualChanges, hasBranchChoices, hasErrors, hasValidationExceptionForPropertyKey, inlineStyleDeclarationForPropertyKey, inlineStyleDeclarationForPropertyName, isEmbedded, 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, 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, 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.ERDPickPageInterface
nextPageDelegate, setDataSource, setNextPageDelegate
 
Methods inherited from interface com.webobjects.directtoweb.EditRelationshipPageInterface
setNextPage, setNextPageDelegate
 
Methods inherited from interface com.webobjects.directtoweb.ListPageInterface
setNextPage, setNextPageDelegate
 
Methods inherited from interface com.webobjects.directtoweb.SelectPageInterface
nextPageDelegate, setNextPageDelegate
 

Field Detail

log

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


dummy

public java.lang.String dummy
IE sometimes won't submit the form if it only has checkboxes, we bind this to a WOHiddenField.


_singleSelection

public java.lang.Boolean _singleSelection
Caches if we are in single selection mode.


_masterObject

public com.webobjects.eocontrol.EOEnterpriseObject _masterObject
These are set when we are in edit-relationship mode.


_relationshipKey

public java.lang.String _relationshipKey
Constructor Detail

ERD2WPickListPage

public ERD2WPickListPage(com.webobjects.appserver.WOContext context)
Public constructor.

Parameters:
context - current context
Method Detail

showCancel

public boolean showCancel()
Determines if the cancel button should be shown.

Overrides:
showCancel in class ERD2WListPage
Returns:
if we have a nextPage set

checked

public boolean checked()

setChecked

public void setChecked(boolean newChecked)

selectedObjects

public com.webobjects.foundation.NSArray selectedObjects()
Description copied from class: ERD2WListPage
The currently selected objects.

Specified by:
selectedObjects in interface ERDPickPageInterface
Overrides:
selectedObjects in class ERD2WListPage

setSelectedObjects

public void setSelectedObjects(com.webobjects.foundation.NSArray selectedObjects)
Description copied from class: ERD2WListPage
Sets currently selected objects. Pushes the values to the display group, clearing the selection if needed.

Specified by:
setSelectedObjects in interface ERDPickPageInterface
Overrides:
setSelectedObjects in class ERD2WListPage

cancelPage

public com.webobjects.appserver.WOComponent cancelPage()
Specified by:
cancelPage in interface ERDPickPageInterface

setCancelPage

public void setCancelPage(com.webobjects.appserver.WOComponent cp)
Specified by:
setCancelPage in interface ERDPickPageInterface

backAction

public com.webobjects.appserver.WOComponent backAction()
Overrides:
backAction in class ERD2WListPage

setChoices

public void setChoices(com.webobjects.foundation.NSArray choices)
Specified by:
setChoices in interface ERDPickPageInterface

willUpdate

protected void willUpdate()
Overrides:
willUpdate in class ERD2WListPage

didUpdate

protected void didUpdate()
Overrides:
didUpdate in class ERD2WListPage

showSelectionActions

public boolean showSelectionActions()

filteredObjects

public com.webobjects.foundation.NSArray filteredObjects()
The display group's objects, filtered by the display group qualifier (if any)


selectAll

public com.webobjects.appserver.WOComponent selectAll()

selectAllOnPage

public com.webobjects.appserver.WOComponent selectAllOnPage()

unselectAll

public com.webobjects.appserver.WOComponent unselectAll()

singleSelection

public boolean singleSelection()

selectionWidgetName

public java.lang.String selectionWidgetName()

setMasterObjectAndRelationshipKey

public void setMasterObjectAndRelationshipKey(com.webobjects.eocontrol.EOEnterpriseObject eo,
                                              java.lang.String relationshipName)
Specified by:
setMasterObjectAndRelationshipKey in interface com.webobjects.directtoweb.EditRelationshipPageInterface

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

Copyright © 2002 – 2007 Project Wonder.