|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.comp.renderer.TemplateHelper
public class TemplateHelper
Provide a default encapsulation of the template rendering stuff.
Field Summary | |
---|---|
protected BTemplate |
btemplate
|
protected static String |
IT_STACK
|
protected static String |
ITERATIVE_MODEL_MAP
|
protected Stack |
itStack
|
protected static org.apache.log4j.Logger |
logger
|
protected Renderer |
masterRenderer
|
protected boolean |
skipUntilBlockIterateEnd
|
Constructor Summary | |
---|---|
TemplateHelper(Renderer imasterRenderer)
|
Method Summary | |
---|---|
static void |
cleanupAfterBlockIterate()
|
protected void |
copyChildNodes(Node templateNode,
Node targetNode,
TemplateView view,
ViewContext vc,
int depth)
Copy nodes from the template to the target |
protected Node |
getNode(Node templateNode,
TemplateView view,
ViewContext vc,
int depth)
Given the specified templateNode, return the new Node to be rendered into the view |
protected void |
popstack()
|
protected boolean |
postiterate(TemplateModel tm,
TemplateDirective td)
Handles the post iteration stuff; returns false if positeration has already occurred. |
protected boolean |
preiterate(Node templateNode,
TemplateModel tm,
TemplateDirective td)
Handles the ITERATE_START tag; returns false if we can just continue preIterate() will only be called the first time. |
void |
render(BTemplate comp,
TemplateView view,
ViewContext vc)
This renders a BTemplate component into the specified TemplateView, for the given ViewCOntext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
protected static final String ITERATIVE_MODEL_MAP
protected static final String IT_STACK
protected Renderer masterRenderer
protected BTemplate btemplate
protected Stack itStack
protected boolean skipUntilBlockIterateEnd
Constructor Detail |
---|
public TemplateHelper(Renderer imasterRenderer)
Method Detail |
---|
public void render(BTemplate comp, TemplateView view, ViewContext vc) throws RenderException
RenderException
protected void copyChildNodes(Node templateNode, Node targetNode, TemplateView view, ViewContext vc, int depth) throws RenderException
RenderException
protected Node getNode(Node templateNode, TemplateView view, ViewContext vc, int depth) throws RenderException
RenderException
protected boolean preiterate(Node templateNode, TemplateModel tm, TemplateDirective td)
protected boolean postiterate(TemplateModel tm, TemplateDirective td)
protected void popstack()
public static void cleanupAfterBlockIterate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |