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.
Attributes | Name and Description |
---|---|
|
caplin.presenter.node.TemplateAware()
|
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 |
►
caplin.presenter.node.TemplateAware()
►
String
getTemplateName()
Returns the name of the HTML template that will be used to render this presentation node
(must not be null
or undefined
).