com.arsdigita.cms.contenttypes.ui
Class ContentGroupPropertyForm

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.FormSection
              extended bycom.arsdigita.cms.ui.authoring.BasicItemForm
                  extended bycom.arsdigita.cms.contenttypes.ui.ContentGroupPropertyForm
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, EventListener, com.arsdigita.bebop.event.FormInitListener, com.arsdigita.bebop.event.FormProcessListener, com.arsdigita.bebop.event.FormValidationListener, com.arsdigita.util.Lockable

public class ContentGroupPropertyForm
extends BasicItemForm

Form to edit the basic properties of a Content Group. This form can be extended to create forms for Brand subclasses.


Field Summary
static String ASSOCIATED_ITEMS
           
static String RELATED_ITEM
           
 
Fields inherited from class com.arsdigita.cms.ui.authoring.BasicItemForm
LANGUAGE, NAME, TITLE
 
Fields inherited from class com.arsdigita.bebop.FormSection
m_formModel, m_panel, versionId
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.event.FormInitListener
versionId
 
Fields inherited from interface com.arsdigita.bebop.event.FormProcessListener
versionId
 
Fields inherited from interface com.arsdigita.bebop.event.FormValidationListener
versionId
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
ContentGroupPropertyForm(ItemSelectionModel itemModel, String attributeName)
          Creates a new form to edit the Brand object specified by the item selection model passed in.
 
Method Summary
protected  void addWidgets()
          Adds widgets to the form.
protected  String getSearchContentType()
          The name of the Content Type to restrict the ItemSearchWidget to.
 void init(com.arsdigita.bebop.event.FormSectionEvent e)
          Perform form initialization.
 void process(com.arsdigita.bebop.event.FormSectionEvent e)
          Process the form.
 
Methods inherited from class com.arsdigita.cms.ui.authoring.BasicItemForm
add, add, addSaveCancelSection, generateXML, getAllVersionIDs, getItemSelectionModel, getSaveCancelSection, validate, validateNameUniqueness, validateNameUniquenessWithinCategory
 
Methods inherited from class com.arsdigita.bebop.FormSection
addCancelListener, addInitListener, addProcessListener, addSubmissionListener, addValidationListener, children, contains, createInitListener, createProcessListener, createSubmissionListener, createValidationListener, fireCancel, fireInit, fireProcess, fireSubmitted, fireValidate, forwardInit, forwardProcess, forwardSubmission, forwardValidation, get, getModel, getPanel, indexOf, isEmpty, lock, process, register, removeCancelListener, removeInitListener, removeProcessListener, removeSubmissionListener, removeValidationListener, respond, size
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, register, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked
 

Field Detail

ASSOCIATED_ITEMS

public static final String ASSOCIATED_ITEMS
See Also:
Constant Field Values

RELATED_ITEM

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

ContentGroupPropertyForm

public ContentGroupPropertyForm(ItemSelectionModel itemModel,
                                String attributeName)
Creates a new form to edit the Brand object specified by the item selection model passed in.

Parameters:
itemModel - The ItemSelectionModel to use to obtain the ContentGroupContainer to work on
attributeName - The name of the content group to use during the process stage of this form.
Method Detail

addWidgets

protected void addWidgets()
Adds widgets to the form.

Overrides:
addWidgets in class BasicItemForm

init

public void init(com.arsdigita.bebop.event.FormSectionEvent e)
          throws com.arsdigita.bebop.FormProcessException
Perform form initialization. Children should override this this method to pre-fill the widgets with data, instantiate the content item, etc.

Specified by:
init in interface com.arsdigita.bebop.event.FormInitListener
Specified by:
init in class BasicItemForm
Throws:
com.arsdigita.bebop.FormProcessException

process

public void process(com.arsdigita.bebop.event.FormSectionEvent e)
             throws com.arsdigita.bebop.FormProcessException
Process the form. Children should override this method to save the user's changes to the database.

Specified by:
process in interface com.arsdigita.bebop.event.FormProcessListener
Specified by:
process in class BasicItemForm
Throws:
com.arsdigita.bebop.FormProcessException

getSearchContentType

protected String getSearchContentType()
The name of the Content Type to restrict the ItemSearchWidget to. To allow the user to search for any content type, this should return null.



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