com.arsdigita.cms.ui.authoring
Class AuthoringKitSelector
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.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
.
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. |
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 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 |
versionId
public static final String versionId
- See Also:
- Constant Field Values
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
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 kittype
- 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 21 2004:2352 UTC