![JAR search and dependency download from the Maven repository](/logo.png)
com.sencha.gxt.core.client.IdentityValueProvider Maven / Gradle / Ivy
/**
* Sencha GXT 3.1.0-beta - Sencha for GWT
* Copyright(c) 2007-2014, Sencha, Inc.
* [email protected]
*
* http://www.sencha.com/products/gxt/license/
*/
package com.sencha.gxt.core.client;
/**
* A read-only ValueProvider
that simply returns the model as the
* property value. Useful when wanting to work directly with the model, rather
* than a property.
*
* @param the property type
*/
public class IdentityValueProvider implements ValueProvider {
private final String path;
/**
* Creates a new value provider with an empty string for the path.
*/
public IdentityValueProvider() {
this("");
}
/**
* Creates a new value provider.
*
* @param path the path
*/
public IdentityValueProvider(String path) {
this.path = path;
}
@Override
public void setValue(T object, T value) {
}
@Override
public T getValue(T object) {
return object;
}
@Override
public String getPath() {
return path;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy