com.extjs.gxt.ui.client.data
Class ModelProcessor<M extends ModelData>

java.lang.Object
  extended by com.extjs.gxt.ui.client.data.ModelProcessor<M>
Type Parameters:
M - the model type

public abstract class ModelProcessor<M extends ModelData>
extends java.lang.Object

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.


Constructor Summary
ModelProcessor()
           
 
Method Summary
abstract  M prepareData(M model)
          Returns the model to be rendered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelProcessor

public ModelProcessor()
Method Detail

prepareData

public abstract M prepareData(M model)
Returns the model to be rendered.

Parameters:
model - the model
Returns:
the updated or new model