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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy