/**
  * Adds a <code>DataFormDefinitionElement</code> to this collection of form element definitions.
  *
  * @param formElement the <code>DataFormDefinitionElement</code>
  */
 public void addDataFormElement(DataFormDefinitionElement element) {
   if (_formElements == null) {
     _formElements = new ArrayList();
   }
   _formElements.add(element);
   element.setDataForm(getDataForm());
 }
 void setDataForm(DataFormDefinition form) {
   _form = form;
   if (_formElements != null) {
     Iterator i = _formElements.iterator();
     while (i.hasNext()) {
       DataFormDefinitionElement def = (DataFormDefinitionElement) i.next();
       def.setDataForm(form);
     }
   }
 }