Class DefaultHtmlTextWithTitleViewController
- java.lang.Object
-
- it.tidalwave.northernwind.frontend.ui.component.htmltextwithtitle.DefaultHtmlTextWithTitleViewController
-
- All Implemented Interfaces:
HtmlTextWithTitleViewController
,ViewController
public abstract class DefaultHtmlTextWithTitleViewController extends java.lang.Object implements HtmlTextWithTitleViewController
A default implementation of the
HtmlTextWithTitleViewController
that is independent of the presentation technology. This class is capable to render a sequence of texts with their titles.Supported properties of the
SiteNode
:P_CONTENT_PATHS
: a set of paths toContent
s;P_CLASS
: an optional CSS class name for the wrapping<div>
.
For each
Content
the following properties are used:P_TITLE
: for rendering the title;P_FULL_TEXT
: for rendering the text.
Concrete implementations must provide the following method:
- Author:
- Fabrizio Giudici
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultHtmlTextWithTitleViewController.TextWithTitle
-
Constructor Summary
Constructors Constructor Description DefaultHtmlTextWithTitleViewController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
render(java.util.List<DefaultHtmlTextWithTitleViewController.TextWithTitle> contents)
Renders the collection of texts with their titles.void
renderView(RenderContext context)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.tidalwave.northernwind.frontend.ui.ViewController
findVirtualSiteNodes, initialize, prepareRendering
-
-
-
-
Method Detail
-
renderView
public void renderView(@Nonnull RenderContext context)
- Specified by:
renderView
in interfaceViewController
-
render
protected abstract void render(@Nonnull java.util.List<DefaultHtmlTextWithTitleViewController.TextWithTitle> contents)
Renders the collection of texts with their titles.- Parameters:
contents
- the contents to render
-
-