er.modern.directtoweb.components.relationships
Class ERMD2WEditToOneTypeAhead
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
er.extensions.components.ERXComponent
er.extensions.components.ERXNonSynchronizingComponent
er.directtoweb.components.ERDCustomComponent
er.directtoweb.components.ERDCustomEditComponent
er.modern.directtoweb.components.relationships.ERMD2WEditToOneTypeAhead
- All Implemented Interfaces:
- com.webobjects.appserver.WOActionResults, com.webobjects.foundation.NSKeyValueCoding, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCodingAdditions, com.webobjects.foundation.NSValidation, er.extensions.validation.ERXExceptionHolder, java.io.Serializable, java.lang.Cloneable
public class ERMD2WEditToOneTypeAhead
- extends er.directtoweb.components.ERDCustomEditComponent
A to-one relationship edit component that allows a user to select from a list by typing in the text field
It uses the 'keyWhenRelationship' from the d2w rules for this relationship to display and query. Because it uses an AjaxAutoComplet
the keyWhenRelationshp must be able to uniquely identify the found entity. It can either be a string attribute or a helper
method that returns a constructed unique string.
If the keyWhenRelationship represents an attribute, this component will qualify the list of possible matches via a
fetch. Otherwise it will load ALL of the available destinationEntities and qualify in memory. Keep this in mind when
deciding how to use this component.
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class er.directtoweb.components.ERDCustomEditComponent |
er.directtoweb.components.ERDCustomEditComponent.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.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, 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 |
item
|
static org.apache.log4j.Logger |
log
|
| Fields inherited from class com.webobjects.appserver.WOComponent |
_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 |
| Methods inherited from class er.directtoweb.components.ERDCustomEditComponent |
defaultSortOrderingsForDestinationEntity, destinationEntity, isStateless, object, objectKeyPathValue, objectPropertyValue, permissionToEdit, reset, resetCachedBindingsInStatefulComponent, setObject, setObjectKeyPathValue, setObjectPropertyValue |
| Methods inherited from class er.directtoweb.components.ERDCustomComponent |
appendToResponse, booleanForBinding, clearValidationFailed, d2wComponentNameDebuggingEnabled, d2wContext, d2wDebuggingEnabled, d2wPage, d2wPropertyKeyDebuggingEnabled, extraBindings, hasBinding, integerBooleanForBinding, key, localContext, setD2wContext, setExtraBindings, setKey, setLocalContext, task, taskIsEdit, taskIsInspect, taskIsList, validationFailedWithException, valueForBinding |
| Methods inherited from class er.extensions.components.ERXNonSynchronizingComponent |
invokeAction, takeValuesFromRequest |
| Methods inherited from class er.extensions.components.ERXComponent |
_awakeInContext, clickToOpenEnabled, componentName, dynamicBindings, localizer, pageWithName |
| Methods inherited from class com.webobjects.appserver.WOComponent |
_associationWithName, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasSession, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
public static org.apache.log4j.Logger log
item
public com.webobjects.eocontrol.EOEnterpriseObject item
ERMD2WEditToOneTypeAhead
public ERMD2WEditToOneTypeAhead(com.webobjects.appserver.WOContext context)
synchronizesVariablesWithBindings
public boolean synchronizesVariablesWithBindings()
- Overrides:
synchronizesVariablesWithBindings in class er.directtoweb.components.ERDCustomEditComponent
searchValue
public java.lang.String searchValue()
- Value displayed by the AjaxAutoFill field
- Returns:
- String -
setSearchValue
public void setSearchValue(java.lang.String value)
currentSelection
public com.webobjects.eocontrol.EOEnterpriseObject currentSelection()
currentObjects
public com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOEnterpriseObject> currentObjects()
itemDisplayString
public java.lang.String itemDisplayString()
selectObject
public com.webobjects.appserver.WOActionResults selectObject()
addObject
public com.webobjects.appserver.WOActionResults addObject()
inspectObject
public com.webobjects.appserver.WOActionResults inspectObject()
useFetch
public boolean useFetch()
destinationObjectsWithQualifier
public com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOEnterpriseObject> destinationObjectsWithQualifier(com.webobjects.eocontrol.EOQualifier qual)
ec
public com.webobjects.eocontrol.EOEditingContext ec()
destinationEntityName
public java.lang.String destinationEntityName()
sortKey
public java.lang.String sortKey()
propertyKey
public java.lang.String propertyKey()
setPropertyKey
public void setPropertyKey(java.lang.String key)
allItems
public com.webobjects.foundation.NSArray<com.webobjects.eocontrol.EOEnterpriseObject> allItems()
restrictingFetchSpec
public com.webobjects.eocontrol.EOFetchSpecification restrictingFetchSpec()
restrictedChoiceKey
public java.lang.String restrictedChoiceKey()
restrictingFetchSpecificationName
public java.lang.String restrictingFetchSpecificationName()
searchTemplate
public java.lang.String searchTemplate()
extraQualifier
public com.webobjects.eocontrol.EOQualifier extraQualifier()
minimumCharacterCount
public java.lang.Integer minimumCharacterCount()
keyWhenRelationship
public java.lang.String keyWhenRelationship()
restrictedChoiceList
public java.lang.Object restrictedChoiceList()
searchTermSelectedFunctionName
public java.lang.String searchTermSelectedFunctionName()
searchTermSelectedFunction
public java.lang.String searchTermSelectedFunction()