|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateSource
A source of localized HTML templates for components. The cache is the means of access for components to load thier templates, which they need not do until just before rendering.
The template cache must be able to locate and parse templates as needed. It may maintain templates in memory.
Field Summary | |
---|---|
static String |
TEMPLATE_ASSET_NAME
Name of an IAsset of a component that provides the template
for the asset. |
static String |
TEMPLATE_TAG_PARAMETER_NAME
Deprecated. To be removed in 4.2. Use the new IComponent.getTemplateTagName() method
instead. |
Method Summary | |
---|---|
ComponentTemplate |
getTemplate(IRequestCycle cycle,
IComponent component)
Locates the template for the component. |
Field Detail |
---|
static final String TEMPLATE_ASSET_NAME
IAsset
of a component that provides the template
for the asset. This overrides the default (that the template is in
the same directory as the specification). This allows
pages or component templates to be located properly, relative to static
assets (such as images and stylesheets).
static final String TEMPLATE_TAG_PARAMETER_NAME
IComponent.getTemplateTagName()
method
instead.
Method Detail |
---|
ComponentTemplate getTemplate(IRequestCycle cycle, IComponent component)
cycle
- The request cycle loading the template; this is required
in some cases when the template is loaded from an IAsset
.component
- The component for which a template should be loaded.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |