com.extjs.gxt.ui.client.data.BaseModelStringProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxt Show documentation
Show all versions of gxt Show documentation
Rich Internet Application Framework for GWT
/*
* Ext GWT - Ext for GWT
* Copyright(c) 2007, 2008, Ext JS, LLC.
* [email protected]
*
* http://extjs.com/license
*/
package com.extjs.gxt.ui.client.data;
/**
* Basic implementation of the ModelStringProvider
interface.
* Simply calls toSring on the value.
*/
public class BaseModelStringProvider implements ModelStringProvider {
public String getStringValue(M model, String property) {
Object value = model.get(property);
return value == null ? "" : value.toString();
}
}