org.barracudamvc.core.event.helper
Class BlockIterateHandler
java.lang.Object
org.barracudamvc.core.event.DefaultBaseEventListener
org.barracudamvc.core.event.helper.BlockIterateHandler
- All Implemented Interfaces:
- BaseEventListener, EventListener
- public abstract class BlockIterateHandler
- extends DefaultBaseEventListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
itStack
protected Stack itStack
biCache
protected Map biCache
vc
protected ViewContext vc
bi
protected BlockIterator bi
writer
protected DOMWriter writer
nextNode
protected Node nextNode
stubNode
protected Node stubNode
BlockIterateHandler
public BlockIterateHandler()
setViewContext
public void setViewContext(ViewContext ivc)
getViewContext
public ViewContext getViewContext()
getDOMWriter
public DOMWriter getDOMWriter()
initHandler
public void initHandler()
- you can override this method to handle any initializion
needs for the handler. Its invoked after the view context info
has been set up
getTemplateClass
public abstract Class getTemplateClass()
- you must override this method to specify what template you wish to process
getIterator
public abstract BlockIterator getIterator(String key)
- this is where you provide iterators for blocks as they are encountered in the template
handleViewEvent
public void handleViewEvent(ViewEventContext vec)
throws EventException,
javax.servlet.ServletException,
IOException
- Handle the ViewEvent
- Overrides:
handleViewEvent
in class DefaultBaseEventListener
- Parameters:
vec
- the ViewEventContext
- Throws:
EventException
javax.servlet.ServletException
IOException
handleViewEvent
public void handleViewEvent(ViewEventContext vec,
Document page)
throws EventException,
javax.servlet.ServletException,
IOException
- Handle the ViewEvent
- Throws:
EventException
javax.servlet.ServletException
IOException
printNode
public void printNode(DOMWriter writer,
Node node,
Writer out,
int depth,
boolean isHtml)
throws RenderException,
IOException
- Throws:
RenderException
IOException
printChildNodes
public void printChildNodes(DOMWriter dw,
Node node,
Writer out,
int depth,
boolean isHtml)
throws RenderException,
IOException
- Throws:
RenderException
IOException
Copyright © 2004 BarracudaMVC.org All Rights Reserved.