com.arsdigita.formbuilder
Class FormSectionGenerator

java.lang.Object
  extended bycom.arsdigita.formbuilder.FormSectionGenerator

public class FormSectionGenerator
extends Object

This class can generate a Bebop Form given an object implementing the AttributeMetaDataProvider interface. The Form Builder uses this class for its own admin UI to generate forms for the various persistent components. It is unclear how useful this class will be applicable outside the Form Builder since its functionality is still restricted.

Version:
$Id: //core-platform/dev/src/com/arsdigita/formbuilder/FormSectionGenerator.java#10 $
Author:
Peter Marklund

Field Summary
static String versionId
           
 
Constructor Summary
FormSectionGenerator(AttributeMetaDataProvider metaDataProvider)
           
 
Method Summary
 FormSection generateFormSection()
           
 FormSection generateFormSection(boolean addProcessListener, boolean isAdd)
          Generate a form section from the contained object with attribute metadata
 FormProcessListener getSetProcessListener()
          Returns a process listener that can be used to set the attributes of the object for which the form section is generated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

FormSectionGenerator

public FormSectionGenerator(AttributeMetaDataProvider metaDataProvider)
Method Detail

generateFormSection

public FormSection generateFormSection()

generateFormSection

public FormSection generateFormSection(boolean addProcessListener,
                                       boolean isAdd)
Generate a form section from the contained object with attribute metadata

Parameters:
addProcessListener - A process listener will be added if this is true. The process listener will attempt to use set-methods to set all attributes (this is the listener returned by getSetProcessListener()). If this form section is for a domain object, the domain object will be saved after the set-methods have been invoked.

getSetProcessListener

public FormProcessListener getSetProcessListener()
Returns a process listener that can be used to set the attributes of the object for which the form section is generated. Note that if this is a domain object this process listener will not save that domain object.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC