com.arsdigita.formbuilder
Class PersistentHeading

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.PersistentText
                          extended bycom.arsdigita.formbuilder.PersistentHeading
All Implemented Interfaces:
AttributeMetaDataProvider, Audited, PersistentComponentFactory

public class PersistentHeading
extends PersistentText

This class is responsible for persisting Headings that can be used as section headings to break the form in to multiple logical groupings. The Heading is saved with the save() method. To resurrect the Heading, use the constructor taking the id of the saved Heading and then invoke createComponent().

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

Field Summary
static String BASE_DATA_OBJECT_TYPE
          The fully qualified 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
PersistentHeading()
           
PersistentHeading(BigDecimal id)
          Constructor that retrieves an existing Heading domain object from the database.
PersistentHeading(DataObject obj)
           
PersistentHeading(ObjectType type)
           
PersistentHeading(OID oID)
          To be used by extending classes when retrieving instance from the database.
PersistentHeading(String typeName)
          Constructor that creates a new Heading domain object that can be persisted.
 
Method Summary
static PersistentText create(String headingString)
           
 Component createComponent()
          Create the Heading whose persistence is managed by this domain object.
 String getHeading()
           
 void setHeading(String heading)
           
protected  void setup(String heading)
           
 
Methods inherited from class com.arsdigita.formbuilder.PersistentText
getText, setText
 
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, delete, 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
delete, 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
The fully qualified name of the underlying DataObject of this class.

See Also:
Constant Field Values
Constructor Detail

PersistentHeading

public PersistentHeading()

PersistentHeading

public PersistentHeading(String typeName)
Constructor that creates a new Heading domain object that can be persisted.


PersistentHeading

public PersistentHeading(ObjectType type)

PersistentHeading

public PersistentHeading(DataObject obj)

PersistentHeading

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

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

PersistentHeading

public PersistentHeading(OID oID)
                  throws DataObjectNotFoundException
To be used by extending classes when retrieving instance from the database.

Method Detail

create

public static PersistentText create(String headingString)

setup

protected void setup(String heading)
Overrides:
setup in class PersistentText

createComponent

public Component createComponent()
Create the Heading whose persistence is managed by this domain object.

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

setHeading

public void setHeading(String heading)

getHeading

public String getHeading()


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