|
|||||||||||
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.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.SimpleContainer
com.arsdigita.bebop.PropertyEditor
com.arsdigita.cms.ui.SecurityPropertyEditor
com.arsdigita.cms.ui.authoring.TextAssetBody
com.arsdigita.cms.ui.authoring.TextPageBody
Displays the current text body of the article and allows the user
to edit it, by uploading a file or entering text in a textbox.
The PropertySheet
class is often used
as the display component in the default authoring kit steps of
this class.
Nested Class Summary |
Nested classes inherited from class com.arsdigita.cms.ui.authoring.TextAssetBody |
TextAssetBody.PageFileForm, TextAssetBody.PageTextForm |
Nested classes inherited from class com.arsdigita.cms.ui.SecurityPropertyEditor |
SecurityPropertyEditor.AccessListModel, SecurityPropertyEditor.AccessListModelBuilder |
Nested classes inherited from class com.arsdigita.bebop.PropertyEditor |
com.arsdigita.bebop.PropertyEditor.DefaultModel, com.arsdigita.bebop.PropertyEditor.DefaultModelBuilder, com.arsdigita.bebop.PropertyEditor.IdentityCellRenderer |
Field Summary | |
static String |
versionId
|
Fields inherited from class com.arsdigita.cms.ui.authoring.TextAssetBody |
FILE_UPLOAD, TEXT_ENTRY |
Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
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 | |
TextPageBody(ItemSelectionModel itemModel,
AuthoringKitWizard parent)
Construct a new TextPageBody component |
Method Summary | |
protected TextAsset |
createTextAsset(com.arsdigita.bebop.PageState s)
Create a new text asset and associate it with the current item |
protected TextPage |
getTextPage(com.arsdigita.bebop.PageState s)
Get the current TextPage |
protected void |
setMimeTypeOptions(com.arsdigita.bebop.form.SingleSelect mimeSelect)
Adds the options for the mime type select widget of TextPageForm and sets the default mime type. |
protected void |
updateTextAsset(com.arsdigita.bebop.PageState s,
TextAsset a)
Set additional parameters of a brand new text asset, such as the parent ID, after the asset has been successfully uploaded |
Methods inherited from class com.arsdigita.cms.ui.authoring.TextAssetBody |
addFileWidgets, addTextWidgets, cancelStreamlinedCreation, createOrGetTextAsset, getAssetSelectionModel, getBodyPropertySheet, getDefaultMimeType, getPageFileForm, getTextAsset, maybeForwardToNextStep, pageRequested, register, reset |
Methods inherited from class com.arsdigita.cms.ui.SecurityPropertyEditor |
add, add, addComponent, addComponent, addListeners, addSecurityListener, getAccessMap, setComponentAccess |
Methods inherited from class com.arsdigita.bebop.PropertyEditor |
add, add, add, add, addCancelListener, addComponent, addComponent, addProcessListener, addVisibilityListener, getComponent, getDisplayComponent, getDisplayPane, getLabelsMap, getList, getModel, getModelBuilder, getSelectedComponentKey, lock, setDisplayComponent, setModelBuilder, showComponent, showDisplayPane |
Methods inherited from class com.arsdigita.bebop.SimpleContainer |
add, add, children, contains, generateChildrenXML, generateParent, generateXML, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size |
Methods inherited from class com.arsdigita.bebop.BlockStylable |
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment |
Methods inherited from class com.arsdigita.bebop.TextStylable |
setBackgroundColor, setColor |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, register, respond, 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.AuthoringStepComponent |
addCompletionListener |
Methods inherited from interface com.arsdigita.bebop.Component |
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
Methods inherited from interface com.arsdigita.util.Lockable |
isLocked |
Field Detail |
public static final String versionId
Constructor Detail |
public TextPageBody(ItemSelectionModel itemModel, AuthoringKitWizard parent)
itemModel
- The ItemSelectionModel
which will
be responsible for loading the current itemparent
- The parent wizard which contains the form. The form
may use the wizard's methods, such as stepForward and stepBack,
in its process listener.Method Detail |
protected void setMimeTypeOptions(com.arsdigita.bebop.form.SingleSelect mimeSelect)
TextPageForm
and sets the default mime type.
setMimeTypeOptions
in class TextAssetBody
protected TextAsset createTextAsset(com.arsdigita.bebop.PageState s)
createTextAsset
in class TextAssetBody
s
- the current page state
protected void updateTextAsset(com.arsdigita.bebop.PageState s, TextAsset a)
updateTextAsset
in class TextAssetBody
s
- the current page statea
- the new TextAsset
protected TextPage getTextPage(com.arsdigita.bebop.PageState s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |