|
|||||||||||
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.BasicItemForm
A form for editing subclasses of ContentItem. This is just a convenience class.
Field Summary | |
static String |
LANGUAGE
|
static String |
NAME
|
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.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
Constructor Summary | |
BasicItemForm(String formName,
com.arsdigita.bebop.ColumnPanel columnPanel,
ItemSelectionModel itemModel)
Construct a new BasicItemForm with nothing on it |
|
BasicItemForm(String formName,
ItemSelectionModel itemModel)
Construct a new BasicItemForm |
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. |
void |
generateXML(com.arsdigita.bebop.PageState ps,
com.arsdigita.xml.Element parent)
|
static Collection |
getAllVersionIDs(ContentItem item)
|
ItemSelectionModel |
getItemSelectionModel()
|
com.arsdigita.bebop.SaveCancelSection |
getSaveCancelSection()
|
abstract void |
init(com.arsdigita.bebop.event.FormSectionEvent e)
Perform form initialization. |
abstract void |
process(com.arsdigita.bebop.event.FormSectionEvent e)
Process the form. |
void |
validate(com.arsdigita.bebop.event.FormSectionEvent e)
Validate the form. |
void |
validateNameUniqueness(Folder parent,
com.arsdigita.bebop.event.FormSectionEvent event)
Ensure that the name of an item is unique within a folder. |
void |
validateNameUniquenessWithinCategory(com.arsdigita.bebop.event.FormSectionEvent event,
BigDecimal id)
Ensure that the name of an item is unique within a category. |
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 |
public static final String NAME
public static final String TITLE
public static final String LANGUAGE
Constructor Detail |
public BasicItemForm(String formName, ItemSelectionModel itemModel)
formName
- the name of this formitemModel
- The ItemSelectionModel
which will
be responsible for loading the current itempublic BasicItemForm(String formName, com.arsdigita.bebop.ColumnPanel columnPanel, ItemSelectionModel itemModel)
formName
- the name of this formcolumnPanel
- the columnpanel of the formitemModel
- The ItemSelectionModel
which will
be responsible for loading the current itemMethod Detail |
public void addSaveCancelSection()
protected void addWidgets()
public void generateXML(com.arsdigita.bebop.PageState ps, com.arsdigita.xml.Element parent)
generateXML
in interface com.arsdigita.bebop.Component
public ItemSelectionModel getItemSelectionModel()
public com.arsdigita.bebop.SaveCancelSection getSaveCancelSection()
public abstract 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 abstract 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 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 validateNameUniqueness(Folder parent, com.arsdigita.bebop.event.FormSectionEvent event) throws com.arsdigita.bebop.FormProcessException
parent
- the folder in which to checkevent
- 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 void validateNameUniquenessWithinCategory(com.arsdigita.bebop.event.FormSectionEvent event, BigDecimal id) throws com.arsdigita.bebop.FormProcessException
event
- the FormSectionEvent
which was passed to the
validation listenerid
- The id of the item that is being checked. This must no
be null.
com.arsdigita.bebop.FormProcessException
- if the folder already contains an item
with the name the user provided on the input form.public static Collection getAllVersionIDs(ContentItem item)
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 |