com.arsdigita.cms.ui.authoring
Class PageCreate

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.ui.authoring.BasicPageForm
                      extended bycom.arsdigita.cms.ui.authoring.PageCreate
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, CreationComponent, EventListener, com.arsdigita.bebop.event.FormInitListener, com.arsdigita.bebop.event.FormProcessListener, com.arsdigita.bebop.event.FormSubmissionListener, com.arsdigita.bebop.event.FormValidationListener, com.arsdigita.util.Lockable

public class PageCreate
extends BasicPageForm
implements com.arsdigita.bebop.event.FormSubmissionListener, CreationComponent

A form which will create a new ContentPage or one of its subclasses.

Version:
$Revision: #20 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Stanislav Freidin (stas@arsdigita.com)

Field Summary
static String SECTION_ID
          The state parameter which specifies the content section
static String versionId
           
 
Fields inherited from class com.arsdigita.cms.ui.authoring.BasicPageForm
LAUNCH_DATE
 
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
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
PageCreate(ItemSelectionModel itemModel, CreationSelector parent)
          Construct a new PageCreationForm
 
Method Summary
protected  void addWidgets()
          Add various widgets to the form.
 ApplyWorkflowFormSection getWorkflowSection()
          Return the ApplyWorkflowFormSection associated with this CreationComponent.
 void init(com.arsdigita.bebop.event.FormSectionEvent e)
          Perform form initialization.
 void process(com.arsdigita.bebop.event.FormSectionEvent e)
          Process the form.
 void submitted(com.arsdigita.bebop.event.FormSectionEvent e)
           
 void validate(com.arsdigita.bebop.event.FormSectionEvent e)
          Validate the form.
 
Methods inherited from class com.arsdigita.cms.ui.authoring.BasicPageForm
createContentPage, initBasicWidgets, processBasicWidgets
 
Methods inherited from class com.arsdigita.cms.ui.authoring.BasicItemForm
add, add, addSaveCancelSection, generateXML, getAllVersionIDs, getItemSelectionModel, getSaveCancelSection, 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.cms.ui.authoring.CreationComponent
addSaveCancelSection, getSaveCancelSection, removeProcessListener
 
Methods inherited from interface com.arsdigita.bebop.Container
add, add, contains, get, indexOf, isEmpty, size
 
Methods inherited from interface com.arsdigita.bebop.Component
children, generateXML, getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

SECTION_ID

public static final String SECTION_ID
The state parameter which specifies the content section

See Also:
Constant Field Values
Constructor Detail

PageCreate

public PageCreate(ItemSelectionModel itemModel,
                  CreationSelector parent)
Construct a new PageCreationForm

Parameters:
itemModel - The ItemSelectionModel which will be responsible for loading the current item
parent - The CreationSelector parent. This class should call either the CreationSelector.redirectBack(PageState) or CreationSelector.editItem(PageState, ContentItem) methods on the parent eventually
Method Detail

addWidgets

protected void addWidgets()
Add various widgets to the form. Child classes should override this method to perform all their widget-adding needs.

Overrides:
addWidgets in class BasicPageForm

getWorkflowSection

public ApplyWorkflowFormSection getWorkflowSection()
Return the ApplyWorkflowFormSection associated with this CreationComponent.

Specified by:
getWorkflowSection in interface CreationComponent
Returns:
the ApplyWorkflowFormSection associated with this CreationComponent.

init

public void init(com.arsdigita.bebop.event.FormSectionEvent e)
          throws com.arsdigita.bebop.FormProcessException
Description copied from class: BasicItemForm
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

submitted

public void submitted(com.arsdigita.bebop.event.FormSectionEvent e)
               throws com.arsdigita.bebop.FormProcessException
Specified by:
submitted in interface com.arsdigita.bebop.event.FormSubmissionListener
Throws:
com.arsdigita.bebop.FormProcessException

validate

public void validate(com.arsdigita.bebop.event.FormSectionEvent e)
              throws com.arsdigita.bebop.FormProcessException
Description copied from class: BasicItemForm
Validate the form. Children should override this method to provide custom form validation.

Specified by:
validate in interface com.arsdigita.bebop.event.FormValidationListener
Overrides:
validate in class BasicItemForm
Throws:
com.arsdigita.bebop.FormProcessException

process

public void process(com.arsdigita.bebop.event.FormSectionEvent e)
             throws com.arsdigita.bebop.FormProcessException
Description copied from class: BasicItemForm
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


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