com.arsdigita.formbuilder
Class PersistentForm

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.domain.ObservableDomainObject
          extended bycom.arsdigita.kernel.ACSObject
              extended bycom.arsdigita.auditing.AuditedACSObject
                  extended bycom.arsdigita.formbuilder.PersistentComponent
                      extended bycom.arsdigita.formbuilder.PersistentFormSection
                          extended bycom.arsdigita.formbuilder.PersistentForm
All Implemented Interfaces:
AttributeMetaDataProvider, Audited, CompoundComponent, PersistentComponentFactory, PersistentContainer

public class PersistentForm
extends PersistentFormSection

This domain object manages persistence of a Bebop Form. Properties and components of a Bebop Form can be set (typically with an admin interface), the form should then be saved so that it can be resurrected later on in the application. Of particular importance to application developers are the methods in the PersistentComponentFactory and PersistentContainerFactory interfaces.

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

Field Summary
static String BASE_DATA_OBJECT_TYPE
          BASE_DATA_OBJECT_TYPE represents the full name of the underlying DataObject of this class.
static String versionId
           
 
Fields inherited from class com.arsdigita.formbuilder.PersistentComponent
ATTRIBUTE_STRING
 
Fields inherited from class com.arsdigita.kernel.ACSObject
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE
 
Constructor Summary
PersistentForm()
          Default Constructor.
PersistentForm(BigDecimal id)
          Constructor that retrieves an existing form domain object from the database.
PersistentForm(DataObject obj)
           
PersistentForm(ObjectType type)
           
PersistentForm(OID oid)
           
PersistentForm(String typeName)
          Constructor that creates a new form domain object that can be saved to the database later on.
 
Method Summary
static PersistentForm create(String htmlName)
           
 Component createComponent()
          Create a Bebop form using the persistent information in this form domain object.
 String getAction()
           
 String getHTMLName()
           
 void setAction(String action)
           
 void setHTMLName(String name)
           
protected  void setup(String htmlName)
           
 
Methods inherited from class com.arsdigita.formbuilder.PersistentFormSection
addComponent, addComponent, addComponents, addProcessListener, addProcessListeners, clearComponents, clearProcessListeners, delete, getComponents, getFormContainer, getProcessListeners, moveComponent, removeComponent, removeProcessListener, setComponentAddObserver, setFormContainer
 
Methods inherited from class com.arsdigita.formbuilder.PersistentComponent
beforeSave, getAdminName, getAttributeMetaData, getComponentAttribute, getDescription, setAdminName, setComponentAttribute, setDescription, setDomainClass
 
Methods inherited from class com.arsdigita.auditing.AuditedACSObject
getCreationDate, getCreationIP, getCreationUser, getLastModifiedDate, getLastModifiedIP, getLastModifiedUser, initialize
 
Methods inherited from class com.arsdigita.kernel.ACSObject
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getBaseDataObjectType, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, isContainerModified, setID, setID
 
Methods inherited from class com.arsdigita.domain.ObservableDomainObject
addObserver, getObservers
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.arsdigita.formbuilder.PersistentComponentFactory
getID, isNew, save
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
BASE_DATA_OBJECT_TYPE represents the full name of the underlying DataObject of this class.

See Also:
Constant Field Values
Constructor Detail

PersistentForm

public PersistentForm()
Default Constructor. Should normally not be used be application developers. Is only here to enable instantiation by FormSectionGenerator


PersistentForm

public PersistentForm(String typeName)
Constructor that creates a new form domain object that can be saved to the database later on.


PersistentForm

public PersistentForm(ObjectType type)

PersistentForm

public PersistentForm(DataObject obj)

PersistentForm

public PersistentForm(BigDecimal id)
               throws DataObjectNotFoundException
Constructor that retrieves an existing form domain object from the database.

Parameters:
id - The object id of the form domain object to retrieve

PersistentForm

public PersistentForm(OID oid)
               throws DataObjectNotFoundException
Method Detail

create

public static PersistentForm create(String htmlName)

setup

protected void setup(String htmlName)

createComponent

public Component createComponent()
Create a Bebop form using the persistent information in this form domain object.

Specified by:
createComponent in interface PersistentComponentFactory
Overrides:
createComponent in class PersistentFormSection

setHTMLName

public void setHTMLName(String name)

getHTMLName

public String getHTMLName()

setAction

public void setAction(String action)

getAction

public String getAction()


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