com.arsdigita.cms.contenttypes.ui
Class ImageDisplay

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.cms.contenttypes.ui.ImageDisplay
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.util.Lockable

public class ImageDisplay
extends com.arsdigita.bebop.SimpleComponent

Displays a single ImageAsset, showing its image, width, height, name and mime-type. If the ImageAsset in the selection model is null, be nice about it.

Author:
Hugh Brock (hbrock@redhat.com)

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
ImageDisplay(ItemSelectionModel m)
          Construct a new ImageDisplay
 
Method Summary
protected  void generateImagePropertiesXML(ImageAsset image, com.arsdigita.bebop.PageState state, com.arsdigita.xml.Element element)
           
 void generateXML(com.arsdigita.bebop.PageState state, com.arsdigita.xml.Element parent)
           
protected  ImageAsset getImageAsset(com.arsdigita.bebop.PageState state)
           
 ItemSelectionModel 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

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ImageDisplay

public ImageDisplay(ItemSelectionModel m)
Construct a new ImageDisplay

Parameters:
m - The ItemSelectionModel which will supply this component with the ImageAsset
Method Detail

getImageSelectionModel

public final ItemSelectionModel getImageSelectionModel()
Returns:
the ItemSelectionModel which supplies this component with the ImageAsset

generateXML

public void generateXML(com.arsdigita.bebop.PageState state,
                        com.arsdigita.xml.Element parent)

generateImagePropertiesXML

protected void generateImagePropertiesXML(ImageAsset image,
                                          com.arsdigita.bebop.PageState state,
                                          com.arsdigita.xml.Element element)

getImageAsset

protected ImageAsset getImageAsset(com.arsdigita.bebop.PageState state)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC