Project Wonder 5.0.0.8794

er.extensions.localization
Class ERXLocalizerAssociation

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

public class ERXLocalizerAssociation
extends WOAssociation

Localizes the value it is bound to. Can handle both loc:value="SomeKey" and loc:value=someReturnValue syntax. Install with

WOOgnl.setAssociationClassForPrefix(ERXLocalizerAssociation.class, "loc");

Author:
ak

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
ERXLocalizerAssociation(Object value, boolean isConstant)
           
 
Method Summary
 String bindingInComponent(WOComponent wocomponent)
           
 Object clone()
           
 boolean isValueConstant()
           
 String keyPath()
           
 String toString()
           
 Object valueInComponent(WOComponent wocomponent)
           
 
Methods inherited from class com.webobjects.appserver.WOAssociation
_bindingName, _debugDescription, _declarationName, _declarationType, _hasBindingInParent, _isImplementedForComponent, _logPullValue, _logPushValue, _markStartOfEventIfNeeded, _setDebuggingEnabled, _setValueNoValidation, associationWithKeyPath, associationWithValue, booleanValueInComponent, isValueConstantInComponent, isValueSettable, isValueSettableInComponent, setDebugEnabledForBinding, setValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXLocalizerAssociation

public ERXLocalizerAssociation(Object value,
                               boolean isConstant)
Method Detail

isValueConstant

public boolean isValueConstant()
Overrides:
isValueConstant in class WOAssociation

valueInComponent

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

bindingInComponent

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

keyPath

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

clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class WOAssociation

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

Copyright © 2002 – 2007 Project Wonder.