com.arsdigita.cms.contenttypes.ui.mparticle
Class MultiPartArticleForm
java.lang.Object
com.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.FormSection
com.arsdigita.cms.contenttypes.ui.mparticle.MultiPartArticleForm
- 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:
- MultiPartArticleCreate, MultiPartArticleEditForm
- public abstract class MultiPartArticleForm
- extends com.arsdigita.bebop.FormSection
- implements com.arsdigita.bebop.event.FormInitListener, com.arsdigita.bebop.event.FormProcessListener, com.arsdigita.bebop.event.FormValidationListener
A form for editing MultiPartArticle and subclasses.
- Version:
- $id$
- Author:
- Dave Turner
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 |
Method Summary |
void |
addSaveCancelSection()
|
protected void |
addWidgets()
|
MultiPartArticle |
createArticle(com.arsdigita.bebop.PageState state)
Utility method to create a new MultiPartArticle and update the
selected model. |
void |
generateXML(com.arsdigita.bebop.PageState ps,
com.arsdigita.xml.Element parent)
|
com.arsdigita.bebop.SaveCancelSection |
getSaveCancelSection()
|
abstract void |
init(com.arsdigita.bebop.event.FormSectionEvent e)
|
MultiPartArticle |
initBasicWidgets(com.arsdigita.bebop.event.FormSectionEvent e)
Utility method to initialize the name/title/summary widgets |
abstract void |
process(com.arsdigita.bebop.event.FormSectionEvent e)
|
MultiPartArticle |
processBasicWidgets(com.arsdigita.bebop.event.FormSectionEvent e)
Utility method to process the name/title/summary widgets |
abstract void |
validate(com.arsdigita.bebop.event.FormSectionEvent e)
|
boolean |
validateNameUniqueness(com.arsdigita.cms.Folder folder,
com.arsdigita.bebop.event.FormSectionEvent event)
Ensure that the name of an item is unique within a folder. |
Methods inherited from class com.arsdigita.bebop.FormSection |
add, add, 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 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 |
m_itemModel
protected com.arsdigita.cms.ItemSelectionModel m_itemModel
m_saveCancelSection
protected com.arsdigita.bebop.SaveCancelSection m_saveCancelSection
NAME
public static final String NAME
- See Also:
- Constant Field Values
TITLE
public static final String TITLE
- See Also:
- Constant Field Values
SUMMARY
public static final String SUMMARY
- See Also:
- Constant Field Values
LAUNCH_DATE
public static final String LAUNCH_DATE
- See Also:
- Constant Field Values
LANGUAGE
public static final String LANGUAGE
- See Also:
- Constant Field Values
MultiPartArticleForm
public MultiPartArticleForm(String formName,
com.arsdigita.cms.ItemSelectionModel itemModel)
addSaveCancelSection
public void addSaveCancelSection()
getSaveCancelSection
public com.arsdigita.bebop.SaveCancelSection getSaveCancelSection()
addWidgets
protected void addWidgets()
init
public abstract void init(com.arsdigita.bebop.event.FormSectionEvent e)
throws com.arsdigita.bebop.FormProcessException
- Specified by:
init
in interface com.arsdigita.bebop.event.FormInitListener
- Throws:
com.arsdigita.bebop.FormProcessException
process
public abstract void process(com.arsdigita.bebop.event.FormSectionEvent e)
throws com.arsdigita.bebop.FormProcessException
- Specified by:
process
in interface com.arsdigita.bebop.event.FormProcessListener
- Throws:
com.arsdigita.bebop.FormProcessException
validate
public abstract void validate(com.arsdigita.bebop.event.FormSectionEvent e)
throws com.arsdigita.bebop.FormProcessException
- Specified by:
validate
in interface com.arsdigita.bebop.event.FormValidationListener
- Throws:
com.arsdigita.bebop.FormProcessException
initBasicWidgets
public MultiPartArticle initBasicWidgets(com.arsdigita.bebop.event.FormSectionEvent e)
- Utility method to initialize the name/title/summary widgets
processBasicWidgets
public MultiPartArticle processBasicWidgets(com.arsdigita.bebop.event.FormSectionEvent e)
- Utility method to process the name/title/summary widgets
validateNameUniqueness
public boolean validateNameUniqueness(com.arsdigita.cms.Folder folder,
com.arsdigita.bebop.event.FormSectionEvent event)
- Ensure that the name of an item is unique within a folder.
- Parameters:
folder
- the folder in which to checkevent
- the FormSectionEvent which was passed to the
validation listener
- Returns:
- true if the name is not null and unique, false otherwise
createArticle
public MultiPartArticle createArticle(com.arsdigita.bebop.PageState state)
throws com.arsdigita.bebop.FormProcessException
- Utility method to create a new MultiPartArticle and update the
selected model. This can be called in the process method of a
ProcessListener.
- Parameters:
state
- the current page state
- Returns:
- the new content item (or a proper subclass)
- Throws:
com.arsdigita.bebop.FormProcessException
generateXML
public void generateXML(com.arsdigita.bebop.PageState ps,
com.arsdigita.xml.Element parent)
- Specified by:
generateXML
in interface com.arsdigita.bebop.Component
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:0019 UTC