com.sencha.gxt.core.client
Annotation Type XTemplates.FormatterFactoryMethod


@Target(value={})
@Retention(value=RUNTIME)
public static @interface XTemplates.FormatterFactoryMethod

Allows methods to be called on a factory other than 'getFormat'. More than one instance of this may be provided to a XTemplates.FormatterFactory annotation to register multiple method within the same factory.


Required Element Summary
 String name
          The name of the formatter being registered.
 
Optional Element Summary
 String defaultArgs
          Default arguments to pass into the format method if none are specified in the XTemplate source.
 String method
          The name of the method to invoke to produce a formatter.
 

Element Detail

name

public abstract String name
The name of the formatter being registered. This name will be what is referenced from the XTemplate source.

Returns:
the name of the formatter as it will be used in xtemplate source

method

public abstract String method
The name of the method to invoke to produce a formatter. Defaults to getFormat

Returns:
the name of the static method to invoke to produce a formatter
Default:
"getFormat"

defaultArgs

public abstract String defaultArgs
Default arguments to pass into the format method if none are specified in the XTemplate source.

Returns:
the default arguments to pass into the formatter factory method
Default:
""


Copyright © 2012. All Rights Reserved.