com.arsdigita.cms.ui.authoring
Class BasicPageForm

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
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
Direct Known Subclasses:
PageCreate

public abstract class BasicPageForm
extends BasicItemForm

A form for editing subclasses of ContentPage. This is just a convenience class.

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

Field Summary
static String 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, 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
BasicPageForm(String formName, com.arsdigita.bebop.ColumnPanel columnPanel, ItemSelectionModel itemModel)
          Construct a new BasicPageForm with nothing on it
BasicPageForm(String formName, ItemSelectionModel itemModel)
          Construct a new BasicPageForm
 
Method Summary
protected  void addWidgets()
          Add various widgets to the form.
 ContentPage createContentPage(com.arsdigita.bebop.PageState state)
          A utility method that will create a new item and tell the selection model to select the new item.
 ContentPage initBasicWidgets(com.arsdigita.bebop.event.FormSectionEvent e)
          Utility method to initialize the name/title widgets.
 ContentPage processBasicWidgets(com.arsdigita.bebop.event.FormSectionEvent e)
          Utility method to process the name/title widgets.
 
Methods inherited from class com.arsdigita.cms.ui.authoring.BasicItemForm
add, add, addSaveCancelSection, generateXML, getAllVersionIDs, getItemSelectionModel, getSaveCancelSection, init, process, 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

LAUNCH_DATE

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

BasicPageForm

public BasicPageForm(String formName,
                     ItemSelectionModel itemModel)
Construct a new BasicPageForm

Parameters:
formName - the name of this form
itemModel - The ItemSelectionModel which will be responsible for loading the current item

BasicPageForm

public BasicPageForm(String formName,
                     com.arsdigita.bebop.ColumnPanel columnPanel,
                     ItemSelectionModel itemModel)
Construct a new BasicPageForm with nothing on it

Parameters:
formName - the name of this form
columnPanel - the columnpanel of the form
itemModel - The ItemSelectionModel which will be responsible for loading the current item
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 BasicItemForm

initBasicWidgets

public ContentPage initBasicWidgets(com.arsdigita.bebop.event.FormSectionEvent e)
Utility method to initialize the name/title widgets. Child classes may call this method from the init listener

Parameters:
e - the FormSectionEvent which was passed to the init listener
Returns:
the ContentPage instance which was extracted from the ItemSelectionModel

processBasicWidgets

public ContentPage processBasicWidgets(com.arsdigita.bebop.event.FormSectionEvent e)
Utility method to process the name/title widgets. Child classes may call this method from the process listener.

Parameters:
e - the FormSectionEvent which was passed to the process listener

createContentPage

public ContentPage createContentPage(com.arsdigita.bebop.PageState state)
                              throws com.arsdigita.bebop.FormProcessException
A utility method that will create a new item and tell the selection model to select the new item. Creation components may call this method in the process listener of their form. See PageCreate for an example.

Parameters:
state - the current page state
Returns:
the new content item (or a proper subclass thereof)
Throws:
com.arsdigita.bebop.FormProcessException


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