Project Wonder 5.0

er.extensions.appserver
Class ERXProxyAssociation

java.lang.Object
  extended by com.webobjects.appserver.WOAssociation
      extended by er.extensions.appserver.ERXProxyAssociation
All Implemented Interfaces:
java.lang.Cloneable

public class ERXProxyAssociation
extends com.webobjects.appserver.WOAssociation
implements java.lang.Cloneable

ERXProxyAssociation allows you to create a wrapper around an existing association for the purposes of injecting a prefix or a suffix to the association's value. This is useful in, for instance, dynamic elements where you want to guarantee that a particular CSS class is prepended to an existing "class" binding where you don't necessarily have easy access to the original "class" WOAssociation (like if you extend WOHyperlink, for example).

Author:
mschrag

Nested Class Summary
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOAssociation
com.webobjects.appserver.WOAssociation._EventLoggingEnabler, com.webobjects.appserver.WOAssociation.Event
 
Field Summary
 
Fields inherited from class com.webobjects.appserver.WOAssociation
_BINDING_KEYPATH_PREFIX, _debugEnabled, _IsEventLoggingEnabled, TakeValueForKeyPathEvent, ValueForKeyPathEvent
 
Constructor Summary
ERXProxyAssociation(com.webobjects.appserver.WOAssociation proxiedAssociation, java.lang.String prefix, java.lang.String suffix, boolean treatNullAsEmptyString)
           
 
Method Summary
 void _setValueNoValidation(java.lang.Object obj, com.webobjects.appserver.WOComponent wocomponent)
           
 java.lang.String bindingInComponent(com.webobjects.appserver.WOComponent wocomponent)
           
 java.lang.Object clone()
           
 boolean isValueConstant()
           
 boolean isValueSettable()
           
 java.lang.String keyPath()
           
protected  java.lang.Object processValue(java.lang.Object obj)
           
 void setValue(java.lang.Object obj, com.webobjects.appserver.WOComponent wocomponent)
           
 java.lang.String toString()
           
 java.lang.Object valueInComponent(com.webobjects.appserver.WOComponent wocomponent)
           
 
Methods inherited from class com.webobjects.appserver.WOAssociation
_bindingName, _debugDescription, _declarationName, _declarationType, _hasBindingInParent, _isImplementedForComponent, _logPullValue, _logPushValue, _markStartOfEventIfNeeded, _setDebuggingEnabled, associationWithKeyPath, associationWithValue, booleanValueInComponent, isValueConstantInComponent, isValueSettableInComponent, setDebugEnabledForBinding
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXProxyAssociation

public ERXProxyAssociation(com.webobjects.appserver.WOAssociation proxiedAssociation,
                           java.lang.String prefix,
                           java.lang.String suffix,
                           boolean treatNullAsEmptyString)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class com.webobjects.appserver.WOAssociation

valueInComponent

public java.lang.Object valueInComponent(com.webobjects.appserver.WOComponent wocomponent)
Overrides:
valueInComponent in class com.webobjects.appserver.WOAssociation

processValue

protected java.lang.Object processValue(java.lang.Object obj)

setValue

public void setValue(java.lang.Object obj,
                     com.webobjects.appserver.WOComponent wocomponent)
Overrides:
setValue in class com.webobjects.appserver.WOAssociation

_setValueNoValidation

public void _setValueNoValidation(java.lang.Object obj,
                                  com.webobjects.appserver.WOComponent wocomponent)
Overrides:
_setValueNoValidation in class com.webobjects.appserver.WOAssociation

isValueSettable

public boolean isValueSettable()
Overrides:
isValueSettable in class com.webobjects.appserver.WOAssociation

isValueConstant

public boolean isValueConstant()
Overrides:
isValueConstant in class com.webobjects.appserver.WOAssociation

keyPath

public java.lang.String keyPath()
Specified by:
keyPath in class com.webobjects.appserver.WOAssociation

bindingInComponent

public java.lang.String bindingInComponent(com.webobjects.appserver.WOComponent wocomponent)
Specified by:
bindingInComponent in class com.webobjects.appserver.WOAssociation

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

Copyright © 2002 – 2007 Project Wonder.