Project Wonder 5.0.0.8794

er.extensions.woextensions
Class WOToManyRelationship

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WOComponent
          extended by er.extensions.components.ERXComponent
              extended by er.extensions.components.ERXNonSynchronizingComponent
                  extended by er.extensions.components.ERXStatelessComponent
                      extended by er.extensions.components.ERXArrayChooser
                          extended by er.extensions.woextensions.WOToManyRelationship
All Implemented Interfaces:
WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable
Direct Known Subclasses:
ERXToManyRelationship

public class WOToManyRelationship
extends ERXArrayChooser

Back port from WO 5 WOExtensions. This component is binding compatible, but not source compatible.
It can also handle non-relationships, you must set the possibleChoices to an NSArray and relationshipName to a property name. It works whether the object is an EO or not. The name could/should probably change because it handles not only relationships, but it was wrongly named n the first place...

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent
WOComponent._EventLoggingEnabler, WOComponent.Event
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
 
Field Summary
protected  NSArray _selections
           
 
Fields inherited from class er.extensions.components.ERXArrayChooser
_dataSource, _destinationDisplayKey, _destinationEntityName, _destinationSortKey, _includeUnmatchedValues, _isMandatory, _list, _localizeDisplayKeys, _noneString, _relationshipKey, _sortCaseInsensitive, _sourceEntityName, _sourceObject, _uiStyle, _unmatchedValues, includeUnmatchedValuesDefault, localizeDisplayKeysDefault, log, NO_SELECTION_STRING, NO_SORT_STRING, sortCaseInsensitiveDefault, theCurrentItem
 
Fields inherited from class er.extensions.components.ERXComponent
_dynamicBindings
 
Fields inherited from class com.webobjects.appserver.WOComponent
_Extension, _IsEventLoggingEnabled, _keyAssociations, MINUSONE
 
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
WOToManyRelationship(WOContext aContext)
           
 
Method Summary
 NSArray currentValues()
           
protected  boolean isSingleSelection()
           
 void reset()
           
 NSArray selections()
           
 void setSelections(NSArray selections)
           
 void updateSourceObject(NSArray newValues)
           
 
Methods inherited from class er.extensions.components.ERXArrayChooser
_destinationEntityName, dataSource, destinationDisplayKey, destinationEntity, destinationEntityName, destinationSortKey, destinationSortKeys, editingContext, includeUnmatchedValues, isBrowser, isCheckBox, isMandatory, isPopup, isRadio, loadBindingsFromSelection, localizeDisplayKeys, noneString, qualifier, realRelationshipKey, realSourceObject, relationshipKey, setTheCurrentItem, sortCaseInsensitive, sourceEntityName, sourceObject, takeValuesFromRequest, theCurrentItem, theCurrentValue, theList, uiStyle, unmatchedValues
 
Methods inherited from class er.extensions.components.ERXStatelessComponent
isStateless, valueForBooleanBinding, valueForBooleanBinding, valueForBooleanBinding, valueForIntBinding, valueForObjectBinding, valueForObjectBinding
 
Methods inherited from class er.extensions.components.ERXNonSynchronizingComponent
synchronizesVariablesWithBindings
 
Methods inherited from class er.extensions.components.ERXComponent
_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, appendToResponse, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, invokeAction, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript
 
Methods inherited from class com.webobjects.appserver.WOComponent
__valueForBinding, _associationWithName, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_selections

protected NSArray _selections
Constructor Detail

WOToManyRelationship

public WOToManyRelationship(WOContext aContext)
Method Detail

reset

public void reset()
Overrides:
reset in class ERXArrayChooser

updateSourceObject

public void updateSourceObject(NSArray newValues)

setSelections

public void setSelections(NSArray selections)

currentValues

public NSArray currentValues()
Specified by:
currentValues in class ERXArrayChooser

selections

public NSArray selections()

isSingleSelection

protected boolean isSingleSelection()
Specified by:
isSingleSelection in class ERXArrayChooser

Last updated: Thu, Jan 8, 2009 • 12:32 PM EST

Copyright © 2002 – 2007 Project Wonder.