com.arsdigita.cms.ui.authoring
Class AuthoringKitSelector

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.AuthoringKitSelector
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.util.Lockable
Direct Known Subclasses:
WizardSelector

public abstract class AuthoringKitSelector
extends com.arsdigita.bebop.SimpleContainer

Selects a component based on content type. Helper class for WizardSelector.


Field Summary
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
AuthoringKitSelector(com.arsdigita.bebop.SingleSelectionModel model)
          Construct a new AuthoringKitSelector.
 
Method Summary
 void add(com.arsdigita.bebop.Component c)
           
 void add(com.arsdigita.bebop.Component c, int constraints)
           
 void generateXML(com.arsdigita.bebop.PageState state, com.arsdigita.xml.Element parent)
           
 com.arsdigita.bebop.Component getComponent(BigDecimal id)
           
 com.arsdigita.bebop.MapComponentSelectionModel getComponentSelectionModel()
           
protected abstract  com.arsdigita.bebop.Component instantiateKitComponent(AuthoringKit kit, ContentType type)
          Instantiate an authoring kit component.
protected  void processKit()
          Instantiate all the authoring kit wizards.
 
Methods inherited from class com.arsdigita.bebop.SimpleContainer
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, 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, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Field Detail

versionId

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

AuthoringKitSelector

public AuthoringKitSelector(com.arsdigita.bebop.SingleSelectionModel model)
Construct a new AuthoringKitSelector. Load all the possible authoring kits from the database and construct components for them.

Parameters:
model - the ItemSelectionModel which will supply the selector with the id of a content type
Method Detail

add

public void add(com.arsdigita.bebop.Component c)

add

public void add(com.arsdigita.bebop.Component c,
                int constraints)

processKit

protected void processKit()
Instantiate all the authoring kit wizards. The child class should call this method after it is done with initialization


instantiateKitComponent

protected abstract com.arsdigita.bebop.Component instantiateKitComponent(AuthoringKit kit,
                                                                         ContentType type)
Instantiate an authoring kit component. Child classes should override this to do the right thing. It is permissible for this method to return null.

Parameters:
kit - for this kit
type - for this type

getComponent

public com.arsdigita.bebop.Component getComponent(BigDecimal id)
Parameters:
id - The content type id
Returns:
The component the given type id

getComponentSelectionModel

public com.arsdigita.bebop.MapComponentSelectionModel getComponentSelectionModel()
Returns:
The selection model used by this wizard

generateXML

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


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