Project Wonder 2.0

er.directtoweb
Class ERD2WPickListPage

java.lang.Object
  extended bycom.webobjects.appserver.WOElement
      extended bycom.webobjects.appserver.WOComponent
          extended bycom.webobjects.directtoweb.D2WComponent
              extended bycom.webobjects.directtoweb.D2WPage
                  extended byer.directtoweb.ERD2WPage
                      extended byer.directtoweb.ERD2WListPage
                          extended byer.directtoweb.ERD2WPickListPage
All Implemented Interfaces:
Cloneable, DTWGeneration, EditRelationshipPageInterface, ERDBranchInterface, ERDListPageInterface, ERDPickPageInterface, ERDUserInfoInterface, ERXComponentActionRedirector.Restorable, ERXExceptionHolder, ListPageInterface, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, SelectPageInterface, Serializable, WOActionResults
Direct Known Subclasses:
ERD2WPickListPageTemplate

public class ERD2WPickListPage
extends ERD2WListPage
implements ERDPickPageInterface, 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

Nested Class Summary
 
Nested classes inherited from class er.directtoweb.ERD2WPage
ERD2WPage.Keys
 
Nested classes inherited from class com.webobjects.appserver.WOComponent
WOComponent._EventLoggingEnabler, WOComponent.Event
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes inherited from class com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
 EOEnterpriseObject _masterObject
          These are set when we are in edit-relationship mode.
 String _relationshipKey
           
 Boolean _singleSelection
          Caches if we are in single selection mode.
 String dummy
          IE sometimes won't submit the form if it only has checkboxes, we bind this to a WOHiddenField.
static ERXLogger log
          logging support
protected  NSMutableArray selectedObjects
          holds the selected objects
 
Fields inherited from class er.directtoweb.ERD2WListPage
_displayGroup, _hasToUpdate, _rowFlip, referenceEO
 
Fields inherited from class er.directtoweb.ERD2WPage
_allConfigurations, _branch, _context, _nextPage, _nextPageDelegate, _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
_CLASS, NullValue
 
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.NSValidation
_CLASS
 
Constructor Summary
ERD2WPickListPage(WOContext context)
          Public constructor.
 
Method Summary
 WOComponent backAction()
           
 WOComponent cancelPage()
           
 boolean checked()
           
 WOComponent selectAll()
           
 NSArray selectedObjects()
           
 String selectionWidgetName()
           
 void setCancelPage(WOComponent cp)
           
 void setChecked(boolean newChecked)
           
 void setChoices(NSArray choices)
           
 void setMasterObjectAndRelationshipKey(EOEnterpriseObject eo, String relationshipName)
           
 void setSelectedObjects(NSArray selectedObjects)
           
 boolean showCancel()
          Determines if the cancel button should be shown.
 boolean singleSelection()
           
 WOComponent unselectAll()
           
 
Methods inherited from class er.directtoweb.ERD2WListPage
alternatingColorForRow, appendToResponse, backgroundColorForRow, colorForRow, defaultSortKey, deleteObjectAction, descriptionForResponse, displayGroup, editingContextDidSaveChanges, editObjectAction, finalize, formTargetJavaScriptUrl, inspectObjectAction, invokeAction, isEntityEditable, isEntityInspectable, isEntityReadOnly, isListEmpty, isSelecting, isSelectingNotTopLevel, listSize, localInstanceOfObject, numberOfObjectsPerBatch, printerFriendlyVersion, printerFriendlyVersion, referenceEOs, selectedObject, selectObjectAction, setBackgroundColorForRow, setDataSource, setSelectedObject, setSortOrderingsOnDisplayGroup, setupPhase, shouldShowSelectAll, sortOrderings, takeValuesFromRequest, targetString, urlForCurrentState, userPreferencesCanSpecifySorting, warmUpForDisplay
 
Methods inherited from class er.directtoweb.ERD2WPage
allConfigurationNames, awake, branch, branchChoices, branchName, clearValidationFailed, currentSection, currentSectionKeys, currentTab, d2wComponentNameDebuggingEnabled, d2wContext, d2wCurrentComponentName, editingContext, errorMessage, errorMessages, hasBranchChoices, hasValidationExceptionForPropertyKey, isEmbedded, isObjectDeleteable, isObjectEditable, isObjectInspectable, nextPage, nextPageDelegate, now, sectionsContents, sectionsForCurrentTab, self, setBranch, setCurrentSection, setCurrentTab, setD2wContext, setEditingContext, setErrorMessage, setErrorMessages, setLocalContext, setNextPage, setNextPageDelegate, setObject, shouldCollectValidationExceptions, shouldPropagateExceptions, shouldSetFailedValidationValue, sleep, tabSectionsContents, tabSectionsContentsFromRuleResult, userInfo, validationFailedWithException
 
Methods inherited from class com.webobjects.directtoweb.D2WPage
alternateRowColor, dataSource, extraBindings, pageWrapperName, 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, object, 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.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 ERXLogger log
logging support


selectedObjects

protected NSMutableArray selectedObjects
holds the selected objects


dummy

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


_singleSelection

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


_masterObject

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


_relationshipKey

public String _relationshipKey
Constructor Detail

ERD2WPickListPage

public ERD2WPickListPage(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 NSArray selectedObjects()
Specified by:
selectedObjects in interface ERDPickPageInterface

setSelectedObjects

public void setSelectedObjects(NSArray selectedObjects)
Specified by:
setSelectedObjects in interface ERDPickPageInterface

cancelPage

public WOComponent cancelPage()
Specified by:
cancelPage in interface ERDPickPageInterface

setCancelPage

public void setCancelPage(WOComponent cp)
Specified by:
setCancelPage in interface ERDPickPageInterface

backAction

public WOComponent backAction()
Overrides:
backAction in class ERD2WListPage

setChoices

public void setChoices(NSArray choices)
Specified by:
setChoices in interface ERDPickPageInterface

selectAll

public WOComponent selectAll()

unselectAll

public WOComponent unselectAll()

singleSelection

public boolean singleSelection()

selectionWidgetName

public String selectionWidgetName()

setMasterObjectAndRelationshipKey

public void setMasterObjectAndRelationshipKey(EOEnterpriseObject eo,
                                              String relationshipName)
Specified by:
setMasterObjectAndRelationshipKey in interface EditRelationshipPageInterface

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.