org.enhydra.barracuda.contrib.sam.xmlform
Class XmlFormMap
java.lang.Object
org.enhydra.barracuda.core.forms.DefaultFormMap
org.enhydra.barracuda.contrib.dbroggisch.repopulation.ErrorFormMap
org.enhydra.barracuda.contrib.dbroggisch.repopulation.RepopulationFormMap
org.enhydra.barracuda.contrib.sam.xmlform.XmlFormMap
- All Implemented Interfaces:
- Contextual, FormMap, Model, StateMap, TemplateModel
- public class XmlFormMap
- extends RepopulationFormMap
Provide a FormMap based on a XML description
Methods inherited from class org.enhydra.barracuda.contrib.dbroggisch.repopulation.RepopulationFormMap |
addModelListener, defineElement, defineElement, fireModelChanged, getChildModels, getItem, getItem, getName, getPrefix, getViewContext, map, map, map, processDirective, removeModelListener, setName, setPrefix, setViewContext |
Methods inherited from class org.enhydra.barracuda.core.forms.DefaultFormMap |
clearState, defineValidator, exists, getBooleanVal, getBooleanVal, getDateVal, getDateVal, getDoubleVal, getDoubleVal, getElement, getElements, getElementVals, getFloatVal, getFloatVal, getIntegerVal, getIntegerVal, getLongVal, getLongVal, getShortVal, getShortVal, getState, getStateKeys, getStateValues, getStringVal, getStringVal, getVal, getVals, isNull, map, map, map, map, map, mapElement, mapElement, putState, removeState, setVal, validateElements, validateForm |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.apache.log4j.Logger logger
GROUP
public static final String GROUP
- See Also:
- Constant Field Values
formName
protected String formName
form
protected Form form
XmlFormMap
public XmlFormMap(ControlEventContext context,
String formName,
String name,
DataObject dataObject)
- instatiate a new XML Form. First the XML Form description is loaded by calling
XmlFormFactory
. For each field, if required a validator is created and
the pre-set values are set according the DataObject
- Parameters:
formName
- filename of the form, used to call XmlFormFactory
dataObject
- DataObject
associated with the formname
- internal name of the form
buildValidatorObject
protected FormValidator buildValidatorObject(Validator validator)
- recursivly called to construct a validator hierarchy. Internally, the reflection API is used here
getFormElement
protected FormElement getFormElement(Element ele,
String name)
- generate a FormElement for a given Element from the XML description
getForm
public Form getForm()
Copyright © 2003 BarracudaMVC.org All Rights Reserved.