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

java.lang.Object
  |
  +--org.enhydra.barracuda.core.event.DefaultBaseEventListener
        |
        +--org.enhydra.barracuda.core.event.helper.BlockIterateHandler
All Implemented Interfaces:
BaseEventListener, java.util.EventListener

public abstract class BlockIterateHandler
extends DefaultBaseEventListener


Field Summary
protected  BlockIterator bi
           
static org.apache.log4j.Logger localLogger
           
protected static java.lang.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(java.lang.String key)
           
abstract  java.lang.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(org.w3c.dom.Node node, java.io.PrintWriter out, int depth, boolean isHtml)
           
 void printNode(org.w3c.dom.Node node, java.io.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 java.lang.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 java.lang.Class getTemplateClass()

getIterator

public abstract BlockIterator getIterator(java.lang.String key)

handleViewEvent

public void handleViewEvent(ViewEventContext vec)
                     throws EventException,
                            javax.servlet.ServletException,
                            java.io.IOException
Handle the ViewEvent

Overrides:
handleViewEvent in class DefaultBaseEventListener
Parameters:
vec - the ViewEventContext
Throws:
java.io.IOException
javax.servlet.ServletException
EventException

printNode

public void printNode(org.w3c.dom.Node node,
                      java.io.PrintWriter out,
                      int depth,
                      boolean isHtml)
               throws RenderException,
                      java.io.IOException
RenderException
java.io.IOException

printChildNodes

public void printChildNodes(org.w3c.dom.Node node,
                            java.io.PrintWriter out,
                            int depth,
                            boolean isHtml)
                     throws RenderException,
                            java.io.IOException
RenderException
java.io.IOException


Copyright © 2001 Enhydra.org