com.arsdigita.cms.formbuilder
Class FormItem

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.domain.ObservableDomainObject
          extended bycom.arsdigita.kernel.ACSObject
              extended bycom.arsdigita.versioning.VersionedACSObject
                  extended bycom.arsdigita.cms.ContentItem
                      extended bycom.arsdigita.cms.ContentPage
                          extended bycom.arsdigita.cms.formbuilder.FormItem
All Implemented Interfaces:
com.arsdigita.auditing.Audited, com.arsdigita.cms.CustomCopy, com.arsdigita.cms.dispatcher.XMLGenerator

public class FormItem
extends com.arsdigita.cms.ContentPage
implements com.arsdigita.cms.dispatcher.XMLGenerator


Field Summary
static String BASE_DATA_OBJECT_TYPE
           
static String CSS
           
static String FORM
           
 
Fields inherited from class com.arsdigita.cms.ContentPage
LAUNCH_DATE, PAGES_IN_CATEGORY, PAGES_IN_FOLDER, QUERY_CATEGORY_ID, QUERY_PAGE, QUERY_ROOT_ID, QUERY_TYPE, SUMMARY, TITLE, versionId
 
Fields inherited from class com.arsdigita.cms.ContentItem
ANCESTORS, AUDITING, CHILDREN, CONTENT_SECTION, CONTENT_TYPE, DRAFT, DRAFT_VERSION, LANGUAGE, LIVE, NAME, PARENT, PENDING, VERSION, VERSIONS
 
Fields inherited from class com.arsdigita.versioning.VersionedACSObject
IS_DELETED, MASTER
 
Fields inherited from class com.arsdigita.kernel.ACSObject
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE
 
Fields inherited from interface com.arsdigita.cms.dispatcher.XMLGenerator
versionId
 
Constructor Summary
FormItem()
           
FormItem(BigDecimal id)
           
FormItem(com.arsdigita.persistence.DataObject obj)
           
FormItem(com.arsdigita.persistence.OID oid)
           
FormItem(String typeName)
           
 
Method Summary
protected  void beforeSave()
           
 boolean copyProperty(com.arsdigita.cms.CustomCopy src, com.arsdigita.persistence.metadata.Property property, com.arsdigita.cms.ItemCopier copier)
           
 void delete()
           
 void generateXML(com.arsdigita.bebop.PageState state, com.arsdigita.xml.Element parent, String useContext)
           
protected  void generateXMLBody(com.arsdigita.bebop.PageState state, com.arsdigita.xml.Element parent, com.arsdigita.bebop.Component c)
           
 String getCSS()
          This returns a string that can be used to locate a Cascading Style Sheet that can be used to style this item.
 com.arsdigita.formbuilder.PersistentForm getForm()
           
static FormItem getItemByName(com.arsdigita.cms.Folder folder, String name)
           
protected  com.arsdigita.bebop.Form instantiateForm(com.arsdigita.formbuilder.PersistentForm form, boolean readOnly)
           
 void setCSS(String css)
          This sets a string that can be used to locate a Cascading Style Sheet that can be used to style this item.
 
Methods inherited from class com.arsdigita.cms.ContentPage
getBaseDataObjectType, getContentBundle, getDisplayName, getLaunchDate, getPagesInSectionQuery, getPagesInSectionQuery, getPagesInSectionQuery, getPagesInSectionQuery, getSearchSummary, getTitle, setLaunchDate, setName, setPagesQueryParameters, setPagesQueryParameters, setTitle
 
Methods inherited from class com.arsdigita.cms.ContentItem
addCategory, addPendingVersion, afterSave, assertDraft, assertLive, assertMaster, assertPending, beforeDelete, canPublishToFS, copy, copy, copyProperty, copyServices, copyServicesFrom, createLiveVersion, createPendingVersion, get, getCategories, getCategoryCollection, getChildren, getContentSection, getContentType, getCreationDate, getCreationIP, getCreationUser, getDraftVersion, getLanguage, getLastModifiedDate, getLastModifiedIP, getLastModifiedUser, getLifecycle, getLiveVersion, getLocale, getName, getParent, getPath, getPathInfo, getPathInfo, getPathNoJsp, getPendingVersions, getPublicVersion, getVersion, getWorkingVersion, initialize, isDraftVersion, isLive, isLiveVersion, isPendingVersion, isPublished, makeCopy, promotePendingVersion, publish, publishToFS, removeCategory, removeLifecycle, removePendingVersion, set, setContentSection, setContentType, setDefaultCategory, setLanguage, setLifecycle, setLive, setLiveVersion, setParent, setVersion, setVersionRecursively, unpublish, unpublishFromFS
 
Methods inherited from class com.arsdigita.versioning.VersionedACSObject
applyTag, applyUniqueTag, autoPropagateMaster, getMaster, getRolledBackTo, getTransactions, getTransactions, isMaster, isRolledBack, isSubtype, permanentlyDelete, propagateMaster, recordAttributeChange, rollBackTo, rollBackTo, rollForward, save, setMaster, trackChanges
 
Methods inherited from class com.arsdigita.kernel.ACSObject
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getContainer, getDefaultDomainClass, 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, clear, disconnect, equals, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
See Also:
Constant Field Values

FORM

public static final String FORM
See Also:
Constant Field Values

CSS

public static final String CSS
See Also:
Constant Field Values
Constructor Detail

FormItem

public FormItem()

FormItem

public FormItem(String typeName)

FormItem

public FormItem(com.arsdigita.persistence.DataObject obj)

FormItem

public FormItem(BigDecimal id)
         throws com.arsdigita.domain.DataObjectNotFoundException

FormItem

public FormItem(com.arsdigita.persistence.OID oid)
         throws com.arsdigita.domain.DataObjectNotFoundException
Method Detail

beforeSave

protected void beforeSave()

delete

public void delete()

copyProperty

public boolean copyProperty(com.arsdigita.cms.CustomCopy src,
                            com.arsdigita.persistence.metadata.Property property,
                            com.arsdigita.cms.ItemCopier copier)
Specified by:
copyProperty in interface com.arsdigita.cms.CustomCopy

getItemByName

public static FormItem getItemByName(com.arsdigita.cms.Folder folder,
                                     String name)
                              throws com.arsdigita.domain.DataObjectNotFoundException
Throws:
com.arsdigita.domain.DataObjectNotFoundException

getForm

public com.arsdigita.formbuilder.PersistentForm getForm()

setCSS

public void setCSS(String css)
This sets a string that can be used to locate a Cascading Style Sheet that can be used to style this item.


getCSS

public String getCSS()
This returns a string that can be used to locate a Cascading Style Sheet that can be used to style this item. This returns null if no style sheet has been set.


instantiateForm

protected com.arsdigita.bebop.Form instantiateForm(com.arsdigita.formbuilder.PersistentForm form,
                                                   boolean readOnly)

generateXML

public void generateXML(com.arsdigita.bebop.PageState state,
                        com.arsdigita.xml.Element parent,
                        String useContext)
Specified by:
generateXML in interface com.arsdigita.cms.dispatcher.XMLGenerator

generateXMLBody

protected void generateXMLBody(com.arsdigita.bebop.PageState state,
                               com.arsdigita.xml.Element parent,
                               com.arsdigita.bebop.Component c)


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