|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.FormSection
com.arsdigita.cms.ui.authoring.PageCreateDynamic
The creation component for user-defined content items TODO: subclass PageCreate now that this no longer extends MetaForm?
Nested Class Summary | |
static class |
PageCreateDynamic.ContentItemSelectPrintListener
A print listener for content item selection -- a select list of all content items of the given type |
Field Summary | |
static String |
LANGUAGE
|
static String |
LAUNCH_DATE
|
static String |
NAME
|
static String |
SECTION_ID
The state parameter which specifies the content section |
static String |
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.event.FormSubmissionListener |
versionId |
Fields inherited from interface com.arsdigita.bebop.Container |
versionId |
Fields inherited from interface com.arsdigita.bebop.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
Constructor Summary | |
PageCreateDynamic(ItemSelectionModel itemModel,
CreationSelector parent)
Construct a new PageCreationDynamic component |
|
PageCreateDynamic(ItemSelectionModel itemModel,
CreationSelector parent,
ContentType useContentType)
Construct a new PageCreationDynamic component |
Method Summary | |
void |
add(com.arsdigita.bebop.Component pc)
Adds a component to this container. |
void |
add(com.arsdigita.bebop.Component pc,
int constraints)
Adds a component with the specified layout constraints to this container. |
void |
addSaveCancelSection()
instanciate and add the save/cancel section for this form |
protected void |
addWidgets()
Add various widgets to the form. |
ContentPage |
createUDItem(com.arsdigita.bebop.PageState state)
A utility method that will create a new userdefined content item of the correct object type and tell the selection model to select the new item. |
ItemSelectionModel |
getItemSelectionModel()
|
com.arsdigita.bebop.SaveCancelSection |
getSaveCancelSection()
Return the save/cancel section for this CreationComponent. |
ApplyWorkflowFormSection |
getWorkflowSection()
Return the ApplyWorkflowFormSection associated with this CreationComponent. |
void |
init(com.arsdigita.bebop.event.FormSectionEvent e)
|
void |
process(com.arsdigita.bebop.event.FormSectionEvent e)
Process: save fields to the database |
void |
submitted(com.arsdigita.bebop.event.FormSectionEvent e)
Submission: If the Cancel button was pressed, hide self and show the display component |
void |
validate(com.arsdigita.bebop.event.FormSectionEvent e)
Validate: ensure name uniqueness |
void |
validateNameUniqueness(Folder parent,
com.arsdigita.bebop.event.FormSectionEvent e)
Ensure that the name of an item is unique within a folder. |
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, generateXML, 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 |
removeProcessListener |
Methods inherited from interface com.arsdigita.bebop.Container |
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 |
public static final String NAME
public static final String TITLE
public static final String LAUNCH_DATE
public static final String LANGUAGE
public static final String SECTION_ID
Constructor Detail |
public PageCreateDynamic(ItemSelectionModel itemModel, CreationSelector parent)
itemModel
- The ItemSelectionModel
which will
be responsible for loading the current itemparent
- The CreationSelector
parent. This class should call
either the CreationSelector.redirectBack(PageState)
or CreationSelector.editItem(PageState, ContentItem)
methods on the parent
eventuallypublic PageCreateDynamic(ItemSelectionModel itemModel, CreationSelector parent, ContentType useContentType)
itemModel
- The ItemSelectionModel
which will
be responsible for loading the current itemparent
- The CreationSelector
parent. This class should call
either the CreationSelector.redirectBack(PageState)
or CreationSelector.editItem(PageState, ContentItem)
methods on the parent
eventuallyuseContentType
- The content type to use for choosing dynamic
components (if one UDCT inherits from another, type-specific attributes
will be in separate steps).Method Detail |
protected void addWidgets()
public ItemSelectionModel getItemSelectionModel()
public void addSaveCancelSection()
addSaveCancelSection
in interface CreationComponent
public com.arsdigita.bebop.SaveCancelSection getSaveCancelSection()
CreationComponent
getSaveCancelSection
in interface CreationComponent
public ApplyWorkflowFormSection getWorkflowSection()
getWorkflowSection
in interface CreationComponent
public void init(com.arsdigita.bebop.event.FormSectionEvent e) throws com.arsdigita.bebop.FormProcessException
init
in interface com.arsdigita.bebop.event.FormInitListener
com.arsdigita.bebop.FormProcessException
public void submitted(com.arsdigita.bebop.event.FormSectionEvent e) throws com.arsdigita.bebop.FormProcessException
submitted
in interface com.arsdigita.bebop.event.FormSubmissionListener
com.arsdigita.bebop.FormProcessException
public void validate(com.arsdigita.bebop.event.FormSectionEvent e) throws com.arsdigita.bebop.FormProcessException
validate
in interface com.arsdigita.bebop.event.FormValidationListener
com.arsdigita.bebop.FormProcessException
public void process(com.arsdigita.bebop.event.FormSectionEvent e) throws com.arsdigita.bebop.FormProcessException
process
in interface com.arsdigita.bebop.event.FormProcessListener
com.arsdigita.bebop.FormProcessException
public void validateNameUniqueness(Folder parent, com.arsdigita.bebop.event.FormSectionEvent e) throws com.arsdigita.bebop.FormProcessException
parent
- the folder in which to checke
- the FormSectionEvent
which was passed to the
validation listener
com.arsdigita.bebop.FormProcessException
- if the folder already contains an item
with the name the user provided on the input form.public ContentPage createUDItem(com.arsdigita.bebop.PageState state) throws com.arsdigita.bebop.FormProcessException
state
- the current page state
com.arsdigita.bebop.FormProcessException
public void add(com.arsdigita.bebop.Component pc)
add
in interface com.arsdigita.bebop.Container
pc
- the component to add to this BasicPageFormpublic void add(com.arsdigita.bebop.Component pc, int constraints)
add
in interface com.arsdigita.bebop.Container
pc
- the component to add to this containerconstraints
- layout constraints (a
bitwise OR of static ints in the particular layout)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |