com.arsdigita.cms.ui.templates
Class TemplateBody
java.lang.Object
com.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.templates.TemplateBody
- All Implemented Interfaces:
- AuthoringStepComponent, Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, EventListener, com.arsdigita.util.Lockable, com.arsdigita.bebop.event.RequestListener, com.arsdigita.bebop.Resettable
- public class TemplateBody
- extends TextAssetBody
Edits the body of a template
- Version:
- $Id: //cms/dev/src/com/arsdigita/cms/ui/templates/TemplateBody.java#10 $
- Author:
- Stanislav Freidin (sfreidin@arsdigita.com)
Nested classes inherited from class com.arsdigita.bebop.PropertyEditor |
com.arsdigita.bebop.PropertyEditor.DefaultModel, com.arsdigita.bebop.PropertyEditor.DefaultModelBuilder, com.arsdigita.bebop.PropertyEditor.IdentityCellRenderer |
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 |
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 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 |
versionId
public static final String versionId
- See Also:
- Constant Field Values
TemplateBody
public TemplateBody(ItemSelectionModel itemModel,
AuthoringKitWizard parent)
- Construct a new TemplateBody component
- Parameters:
itemModel
- The ItemSelectionModel
which will
be responsible for loading the current templateparent
- The parent wizard which contains the form. The form
may use the wizard's methods, such as stepForward and stepBack,
in its process listener.
getBodyPropertySheet
protected com.arsdigita.toolbox.ui.DomainObjectPropertySheet getBodyPropertySheet(ItemSelectionModel assetModel)
- Overrides:
getBodyPropertySheet
in class TextAssetBody
createTextAsset
protected TextAsset createTextAsset(com.arsdigita.bebop.PageState s)
- Create a new text asset and associate it with the current item
- Specified by:
createTextAsset
in class TextAssetBody
- Parameters:
s
- the current page state
- Returns:
- a valid TextAsset
updateTextAsset
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
- Specified by:
updateTextAsset
in class TextAssetBody
- Parameters:
s
- the current page statea
- the new TextAsset
setMimeTypeOptions
protected void setMimeTypeOptions(com.arsdigita.bebop.form.SingleSelect mimeSelect)
- Adds the options for the mime type select widget
- Overrides:
setMimeTypeOptions
in class TextAssetBody
addTextWidgets
protected void addTextWidgets(TextAssetBody.PageTextForm c)
- Overrides:
addTextWidgets
in class TextAssetBody
addFileWidgets
protected void addFileWidgets(TextAssetBody.PageFileForm c)
- Overrides:
addFileWidgets
in class TextAssetBody
getPageFileForm
protected TextAssetBody.PageFileForm getPageFileForm()
- This is the form that is used to upload files. This method can
be used so that a subclass can use their own subclass of PageFileForm.
- Overrides:
getPageFileForm
in class TextAssetBody
getDefaultMimeType
protected String getDefaultMimeType()
- Overrides:
getDefaultMimeType
in class TextAssetBody
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC