com.arsdigita.formbuilder
Class PersistentTextArea

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

public class PersistentTextArea
extends PersistentWidget
implements AttributeMetaDataProvider

This class is responsible for persisting Bebop TextAreas. The TextArea is saved with the save() method. To resurrect the TextArea, use the constructor taking the id of the saved TextArea and then invoke createComponent().

Version:
$Id: //core-platform/dev/src/com/arsdigita/formbuilder/PersistentTextArea.java#8 $
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.PersistentWidget
DEFAULT_VALUE
 
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
PersistentTextArea()
          Constructor that creates a new TextArea domain object that can be saved to the database later on.
PersistentTextArea(BigDecimal id)
          Constructor that retrieves an existing TextArea domain object from the database.
PersistentTextArea(DataObject obj)
           
PersistentTextArea(ObjectType type)
           
PersistentTextArea(OID oID)
          Extending classes can use this constructor to set the sub class id and object type.
PersistentTextArea(String typeName)
          Constructor that creates a new TextArea domain object that can be saved to the database later on.
 
Method Summary
static PersistentTextArea create(String parameterName)
           
 Component createComponent()
          Create the TextArea whose persistence is managed by this domain object.
 AttributeMetaDataList getAttributeMetaData()
           
 int getCols()
          Defaults to 30 if no value has been set.
 int getRows()
          Defaults to 10 if no value has been set.
 void setCols(int cols)
           
 void setRows(int rows)
           
 
Methods inherited from class com.arsdigita.formbuilder.PersistentWidget
addValidationListener, clearValidationListeners, copyValuesToWidget, delete, deserializeDefaultValue, getDefaultValue, getParameterModel, getParameterName, getValidationListeners, getValueClass, instantiateParameterModel, setDefaultValue, setParameterModel, setParameterName, setup
 
Methods inherited from class com.arsdigita.formbuilder.PersistentComponent
beforeSave, getAdminName, 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
The fully qualified name of the underlying DataObject of this class.

See Also:
Constant Field Values
Constructor Detail

PersistentTextArea

public PersistentTextArea()
Constructor that creates a new TextArea domain object that can be saved to the database later on. This class was only included to make it possible to use this DomainObject with the FormGenerator (to make the class JavaBean compliant). Use the constructor taking a parameter name instead if possible.


PersistentTextArea

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


PersistentTextArea

public PersistentTextArea(ObjectType type)

PersistentTextArea

public PersistentTextArea(DataObject obj)

PersistentTextArea

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

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

PersistentTextArea

public PersistentTextArea(OID oID)
                   throws DataObjectNotFoundException
Extending classes can use this constructor to set the sub class id and object type.

Method Detail

create

public static PersistentTextArea create(String parameterName)

createComponent

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

Specified by:
createComponent in interface PersistentComponentFactory
Specified by:
createComponent in class PersistentComponent

setCols

public void setCols(int cols)

getCols

public int getCols()
Defaults to 30 if no value has been set.


setRows

public void setRows(int rows)

getRows

public int getRows()
Defaults to 10 if no value has been set.


getAttributeMetaData

public AttributeMetaDataList getAttributeMetaData()
Specified by:
getAttributeMetaData in interface AttributeMetaDataProvider
Overrides:
getAttributeMetaData in class PersistentWidget


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