Project Wonder 5.0.0.8794

er.extensions.appserver
Class ERXProxyAssociation

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

public class ERXProxyAssociation
extends WOAssociation
implements 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
WOAssociation._EventLoggingEnabler, WOAssociation.Event
 
Field Summary
 
Fields inherited from class com.webobjects.appserver.WOAssociation
_BINDING_KEYPATH_PREFIX, _debugEnabled, _IsEventLoggingEnabled, TakeValueForKeyPathEvent, ValueForKeyPathEvent
 
Constructor Summary
ERXProxyAssociation(WOAssociation proxiedAssociation, String prefix, String suffix, boolean treatNullAsEmptyString)
           
 
Method Summary
 void _setValueNoValidation(Object obj, WOComponent wocomponent)
           
 String bindingInComponent(WOComponent wocomponent)
           
 Object clone()
           
 boolean isValueConstant()
           
 boolean isValueSettable()
           
 String keyPath()
           
protected  Object processValue(Object obj)
           
 void setValue(Object obj, WOComponent wocomponent)
           
 String toString()
           
 Object valueInComponent(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(WOAssociation proxiedAssociation,
                           String prefix,
                           String suffix,
                           boolean treatNullAsEmptyString)
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class WOAssociation

valueInComponent

public Object valueInComponent(WOComponent wocomponent)
Overrides:
valueInComponent in class WOAssociation

processValue

protected Object processValue(Object obj)

setValue

public void setValue(Object obj,
                     WOComponent wocomponent)
Overrides:
setValue in class WOAssociation

_setValueNoValidation

public void _setValueNoValidation(Object obj,
                                  WOComponent wocomponent)
Overrides:
_setValueNoValidation in class WOAssociation

isValueSettable

public boolean isValueSettable()
Overrides:
isValueSettable in class WOAssociation

isValueConstant

public boolean isValueConstant()
Overrides:
isValueConstant in class WOAssociation

keyPath

public String keyPath()
Specified by:
keyPath in class WOAssociation

bindingInComponent

public String bindingInComponent(WOComponent wocomponent)
Specified by:
bindingInComponent in class WOAssociation

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

Copyright © 2002 – 2007 Project Wonder.