|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.spectacle.gee.SectionRenderer
info.aduna.gee.spectacle.gee.jit.JitSectionRenderer
info.aduna.gee.spectacle.gee.jit.DefaultJitSectionRenderer
public class DefaultJitSectionRenderer
DefaultJitSectionRenderer provides a flexible and powerful implementation of a JitSectionRenderer. Unless your goals differ too much from a lot of projects realized so far, there should be no need to build your own JitSectionRenderer. And if you really must, you might subclass either DefaultJitSectionRenderer or (preferably) you subclass RenderUtil and feed an instance of it to DefaultJitSectionRenderer's constructor.
| Field Summary | |
|---|---|
protected String |
_firstDestination
|
protected String |
_lastDestination
|
static String |
DEFAULT_DESTINATION
|
| Fields inherited from class info.aduna.gee.spectacle.gee.SectionRenderer |
|---|
_channel, _context, _maxDepth, _minBranchEntities, _recordOccurringLabels, _recordTheseOccurringLabels, _slash, _theTree, ALL, NONE, SOME |
| Constructor Summary | |
|---|---|
DefaultJitSectionRenderer()
To be used by Serialization only. |
|
DefaultJitSectionRenderer(RenderUtil renderUtil)
This constructor is useful when you want the default jit section renderer, combined with a slightly modified render utility. |
|
DefaultJitSectionRenderer(String source,
String intermediateID,
String leafID,
String labelStub,
String cover,
String metaDesignName,
int maxMetaOnPage)
|
|
| Method Summary | |
|---|---|
protected void |
_render(String path,
NavigationTree tree)
Required by SectionRenderer. |
void |
customizeOverviewEntity(Entity overviewEntity,
boolean isLeaf)
Required by CustomizingSectionRenderer. |
String |
getCover()
JitSectionRenderer's should be able to produce their cover name. |
boolean |
handleSection(String path,
NavigationTree node,
Entity overviewEntity)
Required by CustomizingSectionRenderer. |
void |
setFirstDestination(String destination)
Sets the first destination to get overviewed content from. |
void |
setLastDestination(String destination)
Sets the last destination to get overviewed content from. |
| Methods inherited from class info.aduna.gee.spectacle.gee.jit.JitSectionRenderer |
|---|
addSetting, getNumberOfEntries, getSetting, handleSummaryEntries, render, render |
| Methods inherited from class info.aduna.gee.spectacle.gee.SectionRenderer |
|---|
_setTreeRoot, getChannel, getMaxDepth, getMinBranchEntities, getRecordOccurringLabels, getRecordTheseOccurringLabels, getSlash, getTreeRoot, setMaxDepth, setMinBranchEntities, setRecordEntities, setRecordOccurringLabels, setSlash |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String DEFAULT_DESTINATION
protected String _firstDestination
protected String _lastDestination
| Constructor Detail |
|---|
public DefaultJitSectionRenderer()
public DefaultJitSectionRenderer(String source,
String intermediateID,
String leafID,
String labelStub,
String cover,
String metaDesignName,
int maxMetaOnPage)
source - the channel containing the templatesintermediateID - the id of the template to use for intermediate sectionsleafID - the id of the template to use for leaf sectionslabelStub - the template stub that represents the label selectioncover - the name of the cover or nullmetaDesignName - the cover design for meta pagesmaxMetaOnPage - the maximum (inclusive) number of meta's for which the meta design is usedpublic DefaultJitSectionRenderer(RenderUtil renderUtil)
renderUtil - the actual renderer.| Method Detail |
|---|
protected void _render(String path,
NavigationTree tree)
throws ChannelException
_render in class SectionRendererpath - the current path in the NavigationTree, i.e. the
name of the Section to rendertree - the node in the NavigationTree to render
ChannelException
public boolean handleSection(String path,
NavigationTree node,
Entity overviewEntity)
handleSection in interface CustomizingSectionRendererpath - The path of the current section, including the current chunk.node - The current spot in the NavigationTree.overviewEntity - The (proposed) overview entity.
SectionRenderer.getChannel()
public void customizeOverviewEntity(Entity overviewEntity,
boolean isLeaf)
customizeOverviewEntity in interface CustomizingSectionRendereroverviewEntity - the overview entity to be rendered in a sectionisLeaf - if true, the section is a leaf, otherwise the section will have subsectionspublic String getCover()
JitSectionRenderer
getCover in class JitSectionRendererpublic void setFirstDestination(String destination)
public void setLastDestination(String destination)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||