com.arsdigita.bebop
Class SegmentedPanel.Segment
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.SegmentedPanel.Segment
- All Implemented Interfaces:
- Cloneable, Component, Container, Lockable
- Enclosing class:
- SegmentedPanel
- public static class SegmentedPanel.Segment
- extends SimpleContainer
A single Segment within this container
Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
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.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 |
SegmentedPanel.Segment
public SegmentedPanel.Segment()
- Construct an empty
Segment
SegmentedPanel.Segment
public SegmentedPanel.Segment(Component header,
Component body)
- Construct a new
Segment
- Parameters:
header
- the component which will act as the header; the XSL
class attribute for the component will be set to SegmentedPanel.HEADER_CLASS
.
Typically, this component will be a Label
body
- the component which represents the body of the segment, Typically,
this component will be a SimpleContainer
or a panel of some sort
SegmentedPanel.Segment
public SegmentedPanel.Segment(Component body)
- Construct a new
Segment
with no header
- Parameters:
body
- the component which represents the body of the segment, Typically,
this component will be a SimpleContainer
or a panel of some sort
addHeader
public void addHeader(Component c)
- Add a header component.
- Parameters:
c
- an additional header component
add
public void add(Component c)
- Add a component to the body of this segment
- Specified by:
add
in interface Container
- Overrides:
add
in class SimpleContainer
- Parameters:
c
- the component to be added
add
public void add(Component c,
int constraints)
- Add a component to the body of this segment
- Specified by:
add
in interface Container
- Overrides:
add
in class SimpleContainer
- Parameters:
constraints
- this parameter is ignored. Child classes should
override the add method if they wish to provide special handling
of constraints.
generateXML
public void generateXML(PageState state,
Element parent)
- Generate the XML for this segment
- Specified by:
generateXML
in interface Component
- Overrides:
generateXML
in class SimpleContainer
- Parameters:
state
- the current page stateparent
- the parent XML element- See Also:
SimpleContainer.setTag(String)
,
SimpleContainer.setNamespace(String)
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC