com.arsdigita.cms.ui.authoring
Class ArticleImageChooser

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.SimpleContainer
                      extended bycom.arsdigita.cms.ui.authoring.ArticleImageChooser
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.util.Lockable

public class ArticleImageChooser
extends com.arsdigita.bebop.SimpleContainer

A component that can assign an existing image to an article. Consists of an ImageChooser and an ImageSelectionForm

Version:
$Revision: #11 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Stanislav Freidin, Michael Pih

Field Summary
static String CHOSEN_IMAGE
           
static String versionId
           
 
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
ArticleImageChooser(ItemSelectionModel itemModel, ItemSelectionModel assetModel)
          Construct a new ArticleImageChooser
 
Method Summary
 void deleteImage(com.arsdigita.bebop.PageState s, BigDecimal imageId)
          Select the specified image and show the form
 void deselectImage(com.arsdigita.bebop.PageState s)
          Deselect the image and hide the form
 ImageChooser getImageChooser()
           
 ImageSelectionForm getImageSelectionForm()
           
 void register(com.arsdigita.bebop.Page p)
           
 void selectImage(com.arsdigita.bebop.PageState s, BigDecimal imageId)
          Select the specified image and show the form
 
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, lock, 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.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Field Detail

CHOSEN_IMAGE

public static final String CHOSEN_IMAGE
See Also:
Constant Field Values

versionId

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

ArticleImageChooser

public ArticleImageChooser(ItemSelectionModel itemModel,
                           ItemSelectionModel assetModel)
Construct a new ArticleImageChooser

Method Detail

register

public void register(com.arsdigita.bebop.Page p)

getImageSelectionForm

public ImageSelectionForm getImageSelectionForm()
Returns:
the image selection form

getImageChooser

public ImageChooser getImageChooser()
Returns:
the image chooser

selectImage

public void selectImage(com.arsdigita.bebop.PageState s,
                        BigDecimal imageId)
Select the specified image and show the form


deleteImage

public void deleteImage(com.arsdigita.bebop.PageState s,
                        BigDecimal imageId)
Select the specified image and show the form


deselectImage

public void deselectImage(com.arsdigita.bebop.PageState s)
Deselect the image and hide the form



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