Interface
caplin.presenter.node

TemplateAware

Interface implemented by presentation nodes that need to dynamically specify the template that should be used to render them.

By default, presentation nodes held within a list (e.g. using the caplin.presenter.node.NodeList class) are all rendered using the same template — specified within the view. Sometimes, however, it can be useful to render some or all of the list using different templates. Presentation nodes can signal the need to specify the template dynamically by implementing the TemplateAware interface, and by returning the name of the template that should be used to render the node when #getTemplateName is invoked.

Constructor Summary

Attributes Name and Description
caplin.presenter.node.TemplateAware()

Method Summary

Attributes Name and Description
String getTemplateName()

Returns the name of the HTML template that will be used to render this presentation node (must not be null or undefined).

Constructor Detail

caplin.presenter.node.TemplateAware()

Method Detail

String getTemplateName()

Returns the name of the HTML template that will be used to render this presentation node (must not be null or undefined).