com.arsdigita.bebop
Class ListPanel
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.bebop.ListPanel
- All Implemented Interfaces:
- Cloneable, Component, Container, Lockable
- public class ListPanel
- extends SimpleContainer
A container that outputs its components in a <list>. Each child is
printed in its own list item. The components are put into the list
in the order in which they were added to the
ListPanel, progressing from top to bottom.
ListPanels can be ordered or unordered.
- Version:
- $Id: //core-platform/dev/src/com/arsdigita/bebop/ListPanel.java#6 $
- Author:
- Christian Brechbühler (christian@arsdigita.com)
| Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
|
Constructor Summary |
ListPanel(boolean ordered)
Creates a simple list. |
| Methods inherited from class com.arsdigita.bebop.SimpleContainer |
add, add, children, contains, generateChildrenXML, generateParent, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size |
| 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 interface com.arsdigita.bebop.Component |
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible |
versionId
public static final String versionId
- See Also:
- Constant Field Values
ORDERED
public static final boolean ORDERED
- See Also:
- Constant Field Values
UNORDERED
public static final boolean UNORDERED
- See Also:
- Constant Field Values
ListPanel
public ListPanel(boolean ordered)
- Creates a simple list.
- Parameters:
ordered - true is an ordered (numbered) list;
false is an unordered (bulleted) list
generateXML
public void generateXML(PageState state,
Element parent)
- Adds child components as a subtree under list-item nodes.
Generates a DOM fragment:
<bebop:listPanel>
<bebop:cell> ... cell contents </bebop:cell>
<bebop:cell> ... cell contents </bebop:cell>
...
</bebop:list>
- Specified by:
generateXML in interface Component- Overrides:
generateXML in class SimpleContainer
- Parameters:
state - the state of the current requestparent - the node under which this subtree will be added- See Also:
SimpleContainer.setTag(String),
SimpleContainer.setNamespace(String)
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2337 UTC