|
|||||||||||
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
com.arsdigita.cms.ui.folder.FolderForm
Class FolderForm implements the basic form for creating or renaming folders.
Field Summary | |
static String |
versionId
|
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 | |
FolderForm(String name,
FolderSelectionModel folder)
Create a new folder form. |
Method Summary | |
protected Folder |
getCurrentFolder(com.arsdigita.bebop.PageState state)
Returns the current folder being operated on. |
boolean |
isCancelled(com.arsdigita.bebop.PageState s)
Returns true if the form submission was cancelled. |
void |
register(com.arsdigita.bebop.Page p)
|
protected void |
updateFolder(Folder folder,
Folder parent,
String name,
String label)
Updates a folder with a new parent, name, and label. |
protected void |
updateFolder(Folder folder,
String name,
String label)
Updates a folder with a new name and label. |
void |
validate(com.arsdigita.bebop.event.FormSectionEvent e)
Validates the form. |
Methods inherited from class com.arsdigita.cms.ui.authoring.BasicItemForm |
add, add, addSaveCancelSection, addWidgets, generateXML, getAllVersionIDs, getItemSelectionModel, getSaveCancelSection, init, process, 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, 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, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
Methods inherited from interface com.arsdigita.util.Lockable |
isLocked |
Field Detail |
public static final String versionId
Constructor Detail |
public FolderForm(String name, FolderSelectionModel folder)
name
- Name of the formfolder
- SelectionModel containing the current folder being operated on.Method Detail |
public void register(com.arsdigita.bebop.Page p)
public boolean isCancelled(com.arsdigita.bebop.PageState s)
public void validate(com.arsdigita.bebop.event.FormSectionEvent e) throws com.arsdigita.bebop.FormProcessException
validate
in interface com.arsdigita.bebop.event.FormValidationListener
validate
in class BasicItemForm
com.arsdigita.bebop.FormProcessException
protected final void updateFolder(Folder folder, Folder parent, String name, String label)
folder
- The folder to updateparent
- The new parent folder. May be null.name
- The new name of the folderlabel
- The new label for the folderprotected final void updateFolder(Folder folder, String name, String label)
folder
- The folder to updatename
- The new name of the folderlabel
- The new label for the folderprotected final Folder getCurrentFolder(com.arsdigita.bebop.PageState state)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |