Class ria.template.TemplateRepository

A TemplateRepository allows templates to be looked up by name. If no template can be found for a given name, a default template (ria.template.DefaultTemplate) will be returned.

Available templates are ria.template.CustomHtmlTemplate and ria.template.DefaultTemplate

Method Summary
Method Attributes Method Name and Description
Returns the ria.template.Template for the given name, or the default template (ria.template.DefaultTemplate) if no template could be found.
setTemplate(name, template)
Registers the given ria.template.Template in this TemplateRepository with the provided name.
Method Detail
{ria.template.Template} getTemplate(name)
Returns the ria.template.Template for the given name, or the default template (ria.template.DefaultTemplate) if no template could be found.
Parameters:
{String} name
Name of the template to look up
Returns:
{ria.template.Template} a template

setTemplate(name, template)
Registers the given ria.template.Template in this TemplateRepository with the provided name.
Parameters:
{String} name
Name of the template
{ria.template.Template} template
Template object contains the HTML fragment for formatting.