com.arsdigita.cms.ui
Class ContentSectionContainer

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.CMSContainer
                          extended bycom.arsdigita.cms.ui.ContentSectionContainer
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.util.Lockable

public class ContentSectionContainer
extends CMSContainer

Displays all the content sections in table, with links to the admin and public pages. Also displays a form for each content section to create an object of a given type. The list of available types is retrieved for each content section.

This class is a container for two other components: a form and a table. The form represents the drop down list of the content types available in a particular content section. It is an extension of the NewItemForm. The table displays each content section in one row, along with the specified form. The same form is reused in every row of the table.

Version:
$Revision: #12 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Michael Bryzek

Nested Class Summary
static class ContentSectionContainer.AdminURLTableCellRenderer
          Generates the correct URL to the admin pages for a content section.
static class ContentSectionContainer.URLTableCellRenderer
          Generates the correct URL to the public pages for a content section.
 
Field Summary
static String versionID
           
 
Fields inherited from class com.arsdigita.cms.ui.CMSContainer
CMS_XML_NS, 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
ContentSectionContainer(com.arsdigita.bebop.SingleSelectionModel typeSel, com.arsdigita.bebop.SingleSelectionModel sectionSel)
          Constructs a new ContentSectionContainer which containts: SimpleContainer (to contain the form) Form (for creating a new content item in each section) Table (Displays all content sections)
 
Method Summary
 void register(com.arsdigita.bebop.Page p)
           
 
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

versionID

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

ContentSectionContainer

public ContentSectionContainer(com.arsdigita.bebop.SingleSelectionModel typeSel,
                               com.arsdigita.bebop.SingleSelectionModel sectionSel)
Constructs a new ContentSectionContainer which containts:

Parameters:
typeSel - passthrough to NewItemForm
sectionSel - passthrough to NewItemForm
Method Detail

register

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


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