Project Wonder 5.0

er.extensions.foundation
Class ERXLazyValue.KVCSource<T>

java.lang.Object
  extended by er.extensions.foundation.ERXLazyValue.KVCSource<T>
Type Parameters:
T - the type of the value
All Implemented Interfaces:
ERXLazyValue.Source<T>
Enclosing class:
ERXLazyValue<T>

public static class ERXLazyValue.KVCSource<T>
extends java.lang.Object
implements ERXLazyValue.Source<T>

KVCSource provides a wrapper around a KVC binding, which is very useful in components. As an example, you might have your people() method return a lazy value that is bound to a KVCSource<Person>(this, "uncachedPeople").

Author:
mschrag

Constructor Summary
ERXLazyValue.KVCSource(java.lang.Object target, java.lang.String keyPath)
          Constructs a new KVCSource.
 
Method Summary
 void setValue(T value)
          Sets the value of the keypath on the target.
 java.lang.String toString()
           
 T value()
          Returns the value of the kaypath on the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ERXLazyValue.KVCSource

public ERXLazyValue.KVCSource(java.lang.Object target,
                              java.lang.String keyPath)
Constructs a new KVCSource.

Parameters:
target - the target of the KVC binding
keyPath - the keypath to return a value from
Method Detail

value

public T value()
Returns the value of the kaypath on the target.

Specified by:
value in interface ERXLazyValue.Source<T>
Returns:
the value

setValue

public void setValue(T value)
Sets the value of the keypath on the target.

Specified by:
setValue in interface ERXLazyValue.Source<T>
Parameters:
value - the new value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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

Copyright © 2002 – 2007 Project Wonder.