|
|||||||||||
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.cms.ui.ImageDisplay
com.arsdigita.cms.ui.ArticleImageDisplay
Extends ImageDisplay
to display the first
(according to the order attribute) image associated with an Article
The typical usage for this component is
ArticleImageDisplay d = new ArticleImageDisplay(myItemSelectionModel, false);
Field Summary | |
static String |
versionId
|
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 | |
ArticleImageDisplay(ItemSelectionModel article,
ItemSelectionModel assets)
Construct a new ArticleImageDisplay |
Method Summary | |
protected void |
generateImagePropertiesXML(ImageAsset image,
com.arsdigita.bebop.PageState state,
com.arsdigita.xml.Element element)
Adds the image caption as an attribute of the DOM element. |
protected Article |
getArticle(com.arsdigita.bebop.PageState state)
|
ItemSelectionModel |
getArticleSelectionModel()
|
Methods inherited from class com.arsdigita.cms.ui.ImageDisplay |
generateXML, getImageAsset, getImageSelectionModel |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
children, clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, 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 |
Field Detail |
public static final String versionId
Constructor Detail |
public ArticleImageDisplay(ItemSelectionModel article, ItemSelectionModel assets)
ArticleImageDisplay
article
- the ItemSelectionModel
which
supplies the Article
assets
- the ItemSelectionModel
which
supplies the ImageAsset
for the article; it is
the parent's responsibility to register any state parameters
for this modelMethod Detail |
public final ItemSelectionModel getArticleSelectionModel()
protected Article getArticle(com.arsdigita.bebop.PageState state)
state
- The page state
protected void generateImagePropertiesXML(ImageAsset image, com.arsdigita.bebop.PageState state, com.arsdigita.xml.Element element)
generateImagePropertiesXML
in class ImageDisplay
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |