Class DefaultSitemapViewController
- java.lang.Object
-
- it.tidalwave.northernwind.frontend.ui.component.sitemap.DefaultSitemapViewController
-
- All Implemented Interfaces:
SitemapViewController
,ViewController
public abstract class DefaultSitemapViewController extends java.lang.Object implements SitemapViewController
A default implementation of the
SitemapViewController
that is independent of the presentation technology. This class is capable to render the sitemap of aSite
.Supported properties of any
SiteNode
in the site:P_SITEMAP_PRIORITY
: the priority of theSiteNode
- if zero, the node is ignored;P_SITEMAP_CHILDREN_PRIORITY
: same asP_SITEMAP_PRIORITY
, but for child nodes;P_LATEST_MODIFICATION_DATE
: the date-time of the latest modification;P_SITEMAP_CHANGE_FREQUENCY
: the supposed change frequency of theSiteNode
.
Concrete implementations must provide one method for rendering the calendar:
#render(java.util.List)
- Author:
- Fabrizio Giudici
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DefaultSitemapViewController.Entry
-
Field Summary
-
Fields inherited from interface it.tidalwave.northernwind.frontend.ui.component.sitemap.SitemapViewController
P_SITEMAP_CHANGE_FREQUENCY, P_SITEMAP_CHILDREN_PRIORITY, P_SITEMAP_PRIORITY, P_SITEMAP_TEMPLATE_PATH
-
-
Constructor Summary
Constructors Constructor Description DefaultSitemapViewController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ResourceProperties
getViewProperties()
protected abstract void
render(java.util.Set<DefaultSitemapViewController.Entry> entries)
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.Set<DefaultSitemapViewController.Entry> entries)
-
getViewProperties
@Nonnull protected final ResourceProperties getViewProperties()
-
-