com.sencha.gxt.legacy.client.data
Class ModelDataValueProvider<V>

java.lang.Object
  extended by com.sencha.gxt.legacy.client.data.ModelDataValueProvider<V>
Type Parameters:
V - the property type
All Implemented Interfaces:
ValueProvider<ModelData,V>

public class ModelDataValueProvider<V>
extends Object
implements ValueProvider<ModelData,V>

Simple ValueProvider implementation that can work with a ModelData class, fetching properties with the given string key.


Constructor Summary
ModelDataValueProvider(String property)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getPath()
           
 V getValue(ModelData object)
           
 int hashCode()
           
 void setValue(ModelData object, V value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelDataValueProvider

public ModelDataValueProvider(String property)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getPath

public String getPath()
Specified by:
getPath in interface ValueProvider<ModelData,V>

getValue

public V getValue(ModelData object)
Specified by:
getValue in interface ValueProvider<ModelData,V>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setValue

public void setValue(ModelData object,
                     V value)
Specified by:
setValue in interface ValueProvider<ModelData,V>


Copyright © 2011. All Rights Reserved.