All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.extjs.gxt.ui.client.data.BaseModelStringProvider Maven / Gradle / Ivy

There is a newer version: 2.3.1-gwt22
Show newest version
/*
 * 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();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy