com.extjs.gxt.ui.client.data.ModelProcessor 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
/*
* Sencha GXT 2.3.1a - Sencha for GWT
* Copyright(c) 2007-2013, Sencha, Inc.
* [email protected]
*
* http://www.sencha.com/products/gxt/license/
*/
package com.extjs.gxt.ui.client.data;
/**
* Provides a convenient method to provide "formatted" data when using
* templates. Rather than formatting a model value directly, new properties can
* be set with the formatted values directly on the model. The template then can
* refer to these new properties.
*
* @param the model type
*/
public abstract class ModelProcessor {
/**
* Returns the model to be rendered.
*
* @param model the model
* @return the updated or new model
*/
public abstract M prepareData(M model);
}