Package com.sencha.gxt.core.client
Interface XTemplates.Formatter<T>
-
- Type Parameters:
T- the type of data the formatter is intended to handle
- Enclosing interface:
- XTemplates
public static interface XTemplates.Formatter<T>A simple interface to facilitate creation of custom formatters. Instances should be created by a static factory method, as defined byXTemplates.FormatterFactories.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringformat(T data)Formats the given data so it can be drawn in the template as a plain string.
-
-
-
Method Detail
-
format
String format(T data)
Formats the given data so it can be drawn in the template as a plain string.- Parameters:
data- the parameter passed in from the template. Will never be null unlessXTemplates.FormatterFactory.acceptsNull()is true- Returns:
- a string to render in the template
-
-