com.arsdigita.cms.ui.authoring
Class ArticleImage
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.cms.ui.authoring.ArticleImage
- All Implemented Interfaces:
- AuthoringStepComponent, Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.util.Lockable
- public class ArticleImage
- extends com.arsdigita.bebop.SimpleContainer
- implements AuthoringStepComponent
Display the image associated with the article (if any),
and present UI controls for associating a new image.
This component contains two PropertyEditor
instances: one instance that shows up when the article has
no associated image, and another instance that shows up when
the article has at least one image.
This class actually contains four inner classes:
- ImageUploadForm: a form for uploading a new image
- ImagePropertiesForm: a form for editing width/height/caption
- ArticleImagePane: an
ItemPropertySheet
which displays the properties of an image
- ArticleImageChooser: a
SimpleComponent
that contains
an ImageChooser
and an ImageSelectionForm
(which
is another inner class). The ArticleImageChooser
uses the ImageChooser
to select an image, then shows the
form in order to assign a caption to the image and complete the
image selection process.
- Version:
- $Revision: #19 $ $DateTime: 2004/04/07 16:07:11 $
- Author:
- Stanislav Freidin (sfreidin@arsdigita.com), Michael Pih (pihman@arsdigita.com)
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.SimpleContainer |
add, add, children, contains, generateChildrenXML, generateParent, 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, lock, 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, lock |
versionId
public static final String versionId
- See Also:
- Constant Field Values
ArticleImage
public ArticleImage(ItemSelectionModel itemModel,
AuthoringKitWizard parent)
register
public void register(com.arsdigita.bebop.Page p)
- Specified by:
register
in interface com.arsdigita.bebop.Component
generateXML
public void generateXML(com.arsdigita.bebop.PageState state,
com.arsdigita.xml.Element parent)
- Specified by:
generateXML
in interface com.arsdigita.bebop.Component
getParentWizard
public AuthoringKitWizard getParentWizard()
- Returns:
- the parent wizard
getItemSelectionModel
public ItemSelectionModel getItemSelectionModel()
- Returns:
- The item selection model
maybeForwardToNextStep
public void maybeForwardToNextStep(com.arsdigita.bebop.PageState state)
- Forward to the next step if the streamlined creation parameter
is turned on _and_ the streamlined_creation global state param
is set to 'active'
- Parameters:
state
- the PageState
cancelStreamlinedCreation
public void cancelStreamlinedCreation(com.arsdigita.bebop.PageState state)
- Cancel streamlined creation for this step if the streamlined
creation parameter is turned on _and_ the streamlined_creation
global state param is set to 'active'
- Parameters:
state
- the PageState
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC