com.arsdigita.formbuilder
Class PersistentText
java.lang.Object
com.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.auditing.AuditedACSObject
com.arsdigita.formbuilder.PersistentComponent
com.arsdigita.formbuilder.PersistentText
- All Implemented Interfaces:
- AttributeMetaDataProvider, Audited, PersistentComponentFactory
- Direct Known Subclasses:
- PersistentHeading
- public class PersistentText
- extends PersistentComponent
This class is responsible for persisting Texts that can be used
as section headings to break the form in to multiple logical groupings.
The Text is saved with the save() method. To resurrect the Text,
use the constructor taking the id of the saved Text and then invoke
createComponent().
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/formbuilder/PersistentText.java#3 $
- Author:
- Peter Marklund
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.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 |
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
PersistentText
public PersistentText()
PersistentText
public PersistentText(String typeName)
- Constructor that creates a new Text domain object
that can be persisted.
PersistentText
public PersistentText(ObjectType type)
PersistentText
public PersistentText(DataObject obj)
PersistentText
public PersistentText(BigDecimal id)
throws DataObjectNotFoundException
- Constructor that retrieves an existing Text domain object
from the database.
- Parameters:
id
- The object id of the Text domain object to retrieve
PersistentText
public PersistentText(OID oID)
throws DataObjectNotFoundException
- To be used by extending classes when retrieving instance from the database.
create
public static PersistentText create(String textString)
setup
protected void setup(String text)
createComponent
public Component createComponent()
- Create the Text whose persistence is managed
by this domain object.
- Specified by:
createComponent
in interface PersistentComponentFactory
- Specified by:
createComponent
in class PersistentComponent
setText
public void setText(String label)
getText
public String getText()
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC