|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.appserver.WOAssociation | +--com.goodeast.webobjects.switchablestring.SSParentAssociation
This class is used to work around the fact that two of the elements being subclassed are in fact subclasses of WOComponent, not WODynamicElement. As a result, they don't get an array of associations in their constructor,only bindings to the parent component. However, most of the code works correctly if it is passed WOAssociations, so this class serves as glue.
Field Summary | |
protected java.lang.String |
_bindingName
The name of the binding for this Association. |
Fields inherited from class com.webobjects.appserver.WOAssociation |
_BINDING_KEYPATH_PREFIX, _debugEnabled, _IsEventLoggingEnabled, TakeValueForKeyPathEvent, ValueForKeyPathEvent |
Constructor Summary | |
SSParentAssociation(java.lang.String bindingName)
Creates a new SSParentAssociation which can be used to access the binding bindingName. |
Method Summary | |
java.lang.String |
bindingInComponent(com.webobjects.appserver.WOComponent aComponent)
Conformance to subclassing rules for WOAssociation. |
java.lang.String |
keyPath()
Logs an error and continues, as we can't know the keyPath used by this binding based on the public WOComponent API's. |
void |
setValue(java.lang.Object value,
com.webobjects.appserver.WOComponent aComponent)
Sets the value for this binding in aComponent's parent component. |
java.lang.Object |
valueInComponent(com.webobjects.appserver.WOComponent aComponent)
Returns the value for the binding evaluated in aComponent's parent component. |
Methods inherited from class com.webobjects.appserver.WOAssociation |
_bindingName, _debugDescription, _declarationName, _declarationType, _hasBindingInParent, _isImplementedForComponent, _logPullValue, _logPushValue, _markStartOfEventIfNeeded, _setDebuggingEnabled, _setValueNoValidation, associationWithKeyPath, associationWithValue, booleanValueInComponent, isValueConstant, isValueConstantInComponent, isValueSettable, isValueSettableInComponent, setDebugEnabledForBinding, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String _bindingName
Constructor Detail |
public SSParentAssociation(java.lang.String bindingName)
bindingName
- The name of the binding used by this associationMethod Detail |
public java.lang.String bindingInComponent(com.webobjects.appserver.WOComponent aComponent)
bindingInComponent
in class com.webobjects.appserver.WOAssociation
aComponent
- The WOComponent in which this association should be
evaluated.
public java.lang.String keyPath()
keyPath
in class com.webobjects.appserver.WOAssociation
public java.lang.Object valueInComponent(com.webobjects.appserver.WOComponent aComponent)
valueInComponent
in class com.webobjects.appserver.WOAssociation
aComponent
- The WOComponent whose parent the binding should be
evaluated in.
public void setValue(java.lang.Object value, com.webobjects.appserver.WOComponent aComponent)
setValue
in class com.webobjects.appserver.WOAssociation
value
- The value to be set.aComponent
- The component whose parent should have the
binding's value set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |