org.barracudamvc.contrib.sam.xmlform
Class XmlFormViewHandler
java.lang.Object
org.barracudamvc.core.event.DefaultBaseEventListener
org.barracudamvc.core.event.helper.DefaultViewHandler
org.barracudamvc.contrib.sam.xmlform.ModifyDomViewHandler
org.barracudamvc.contrib.sam.xmlform.XmlFormViewHandler
- All Implemented Interfaces:
- EventListener, BaseEventListener
- Direct Known Subclasses:
- DataObjectViewHandler
public abstract class XmlFormViewHandler
- extends ModifyDomViewHandler
extends ModifyDomViewHandler in order to automatically creation of a XML Form based view.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPLOAD_LINK_POSTFIX
public static final String UPLOAD_LINK_POSTFIX
- See Also:
- Constant Field Values
logger
protected static org.apache.log4j.Logger logger
XmlFormViewHandler
public XmlFormViewHandler()
getXmlForm
protected abstract XmlFormMap getXmlForm(ViewContext vc)
- overwrite in subclasses, must return a XmlFormMap defining the fields of the form
getTemplateModels
public Object getTemplateModels(ViewContext vc)
- needed because getTemplateModels does not have a context
- Specified by:
getTemplateModels
in class ModifyDomViewHandler
- Parameters:
vc
- the ViewContext of the current RenderEvent
- Returns:
- either a single model or a
List
of models
modifyDOM
protected void modifyDOM(Document page,
ViewContext vc)
- change the given Document, copy the templates of the various form types as defined in the XmlFormMap
- Overrides:
modifyDOM
in class ModifyDomViewHandler
- Parameters:
page
- a instance of the class returned by ModifyDomViewHandler.getTemplateClass(org.barracudamvc.core.comp.ViewContext)
vc
- the context of the current event
Copyright © 2006 BarracudaMVC.org All Rights Reserved.