|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.auditing.AuditedACSObject
com.arsdigita.formbuilder.PersistentComponent
com.arsdigita.formbuilder.PersistentFormSection
This domain object manages persistence of a Bebop FormSection.
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 | |
|
PersistentFormSection()
Constructor that creates a new form domain object that can be saved to the database later on. |
|
PersistentFormSection(BigDecimal id)
Constructor that retrieves an existing form domain object from the database. |
|
PersistentFormSection(DataObject obj)
|
|
PersistentFormSection(ObjectType type)
|
protected |
PersistentFormSection(OID oid)
For sub classes to use. |
|
PersistentFormSection(String objectType)
To be used by sub classes only. |
Method Summary | |
void |
addComponent(PersistentComponentFactory componentFactory)
Add a component after the already added components (in the last position). |
void |
addComponent(PersistentComponentFactory componentFactory,
int position)
Add a child component of the form. |
protected void |
addComponents(FormSection formSection)
Add all child components to the FormSection. |
void |
addProcessListener(PersistentProcessListener listener)
|
protected void |
addProcessListeners(FormSection formSection)
Instantiate a process listener with the persisted class name and add it to the Bebop Form. |
void |
clearComponents()
Delete all component associations from this container |
void |
clearProcessListeners()
|
Component |
createComponent()
Create a Bebop FormSection using the persistent information in this form section domain object. |
void |
delete()
I am overriding this method to delete all associations with components before the form is deleted. |
Collection |
getComponents()
Return all children components represented by their PersistentComponentFactory objects. |
Container |
getFormContainer()
Get the container that the persistent form will use (for example a ColumnPanel with a certain number of columns). |
Iterator |
getProcessListeners()
|
void |
moveComponent(PersistentComponentFactory componentFactory,
int toPosition)
Move component to new position. |
void |
removeComponent(PersistentComponentFactory componentFactory)
Remove a component from the form. |
void |
removeProcessListener(PersistentProcessListener listener)
|
void |
setComponentAddObserver(ComponentAddObserver observer)
|
void |
setFormContainer(Container container)
Set the container that the persistent form will use (for example a ColumnPanel with a certain number of columns). |
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 |
public static final String versionId
public static final String BASE_DATA_OBJECT_TYPE
Constructor Detail |
public PersistentFormSection()
public PersistentFormSection(String objectType)
public PersistentFormSection(ObjectType type)
public PersistentFormSection(DataObject obj)
public PersistentFormSection(BigDecimal id) throws DataObjectNotFoundException
id
- The object id of the form domain object to retrieveprotected PersistentFormSection(OID oid) throws DataObjectNotFoundException
Method Detail |
public void delete()
delete
in interface PersistentComponentFactory
delete
in class DomainObject
DataObject.delete()
public void addComponent(PersistentComponentFactory componentFactory)
addComponent
in interface PersistentContainer
public void addComponent(PersistentComponentFactory componentFactory, int position)
addComponent
in interface PersistentContainer
position
- The count of this component starting with 1 (i.e. if it's
the third component to be added to the form this
value would be 3)public void removeComponent(PersistentComponentFactory componentFactory)
removeComponent
in interface PersistentContainer
public void moveComponent(PersistentComponentFactory componentFactory, int toPosition)
moveComponent
in interface PersistentContainer
toPosition
- The position to move the component to. Positions start with 1.public void clearComponents()
clearComponents
in interface PersistentContainer
public Component createComponent()
createComponent
in interface PersistentComponentFactory
createComponent
in class PersistentComponent
public Collection getComponents()
protected void addProcessListeners(FormSection formSection)
protected void addComponents(FormSection formSection)
public void setComponentAddObserver(ComponentAddObserver observer)
setComponentAddObserver
in interface CompoundComponent
public void addProcessListener(PersistentProcessListener listener)
public void removeProcessListener(PersistentProcessListener listener)
public void clearProcessListeners()
public Iterator getProcessListeners()
public void setFormContainer(Container container)
public Container getFormContainer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |