|
||||||||||
| 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
public abstract class JitSectionRenderer
Class JitSectionRenderer provides a mechanism to fully realize, just in time, a NavigationSpecification. The NavigationSpecification is instantiated occurding to a set of Entities and this results in a NavigationTree. The NavigationTree is rendered, also just in time, in a Channel.
| Field Summary |
|---|
| Fields inherited from class info.aduna.gee.spectacle.gee.SectionRenderer |
|---|
_channel, _context, _maxDepth, _minBranchEntities, _recordOccurringLabels, _recordTheseOccurringLabels, _slash, _theTree, ALL, NONE, SOME |
| Constructor Summary | |
|---|---|
JitSectionRenderer()
|
|
| Method Summary | |
|---|---|
void |
addSetting(Object key,
Object value)
Set a implementation specific key/value setting. |
abstract String |
getCover()
JitSectionRenderer's should be able to produce their cover name. |
int |
getNumberOfEntries(PathString path,
NavigationTree node)
The default behaviour is to return the actual number of entities. |
Object |
getSetting(Object key)
Get a implementation specific key/value setting. |
boolean |
handleSummaryEntries()
Override this method, if you do not want the upper Spectacle layers to handle the lower level summaries. |
void |
render(NavigationSpecification navigationSpec,
EntityContext context,
Channel channel)
Perform the actual rendering. |
void |
render(Object sectionID,
NavigationTree theTree,
boolean renderContent,
boolean createChildren)
(Optionally) render the node's content and (optionally) ensure the existence of its children. |
| Methods inherited from class info.aduna.gee.spectacle.gee.SectionRenderer |
|---|
_render, _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 |
| Constructor Detail |
|---|
public JitSectionRenderer()
| Method Detail |
|---|
public void addSetting(Object key,
Object value)
public Object getSetting(Object key)
public void render(NavigationSpecification navigationSpec,
EntityContext context,
Channel channel)
throws ChannelException
SectionRenderer
render in class SectionRenderernavigationSpec - the NavigationSpecification to rendercontext - the EntityContext that provides the Entitieschannel - the Channel in which to render the sections
ChannelExceptionSectionRenderer.render(info.aduna.gee.spectacle.gee.NavigationSpecification, info.aduna.gee.spectacle.gee.EntityContext, info.aduna.gee.spectacle.webserver.Channel)
public void render(Object sectionID,
NavigationTree theTree,
boolean renderContent,
boolean createChildren)
throws ChannelException
sectionID - the section that is going to be viewedtheTree - the navigation tree (i.e. the root!)renderContent - if true, render the nodes contentcreateChildren - if true, ensure the existence of its children
ChannelException
public int getNumberOfEntries(PathString path,
NavigationTree node)
path - the path of the current nodenode - the current nodepublic boolean handleSummaryEntries()
public abstract String getCover()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||