org.enhydra.barracuda.core.event.helper
Class BlockIterateHandler

java.lang.Object
  extended byorg.enhydra.barracuda.core.event.DefaultBaseEventListener
      extended byorg.enhydra.barracuda.core.event.helper.BlockIterateHandler
All Implemented Interfaces:
BaseEventListener, EventListener

public abstract class BlockIterateHandler
extends DefaultBaseEventListener


Field Summary
protected  BlockIterator bi
           
static org.apache.log4j.Logger localLogger
           
protected static String NODE_ITERATOR_FLAG
           
protected  ViewContext vc
           
 
Fields inherited from class org.enhydra.barracuda.core.event.DefaultBaseEventListener
idStr
 
Constructor Summary
BlockIterateHandler()
           
 
Method Summary
 DOMWriter getDOMWriter()
           
abstract  BlockIterator getIterator(String key)
           
abstract  Class getTemplateClass()
           
 ViewContext getViewContext()
           
 void handleViewEvent(ViewEventContext vec)
          Handle the ViewEvent
 void initHandler()
          you can override this method to handle any initializion needs for the handler.
 void printChildNodes(Node node, PrintWriter out, int depth, boolean isHtml)
           
 void printNode(Node node, PrintWriter out, int depth, boolean isHtml)
           
 void setViewContext(ViewContext ivc)
          Public noargs constructor
 void updateModelInTemplate(TemplateModel model)
           
 
Methods inherited from class org.enhydra.barracuda.core.event.DefaultBaseEventListener
getListenerID, handleControlEvent, handleEvent, handleOtherEvent, isHandled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localLogger

public static org.apache.log4j.Logger localLogger

NODE_ITERATOR_FLAG

protected static final String NODE_ITERATOR_FLAG

vc

protected ViewContext vc

bi

protected BlockIterator bi
Constructor Detail

BlockIterateHandler

public BlockIterateHandler()
Method Detail

setViewContext

public void setViewContext(ViewContext ivc)
Public noargs constructor


getViewContext

public ViewContext getViewContext()

updateModelInTemplate

public void updateModelInTemplate(TemplateModel model)

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()

getIterator

public abstract BlockIterator getIterator(String key)

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:
IOException
EventException
javax.servlet.ServletException

printNode

public void printNode(Node node,
                      PrintWriter out,
                      int depth,
                      boolean isHtml)
               throws RenderException,
                      IOException
Throws:
RenderException
IOException

printChildNodes

public void printChildNodes(Node node,
                            PrintWriter out,
                            int depth,
                            boolean isHtml)
                     throws RenderException,
                            IOException
Throws:
RenderException
IOException


Copyright © 2003 BarracudaMVC.org All Rights Reserved.