|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.SimpleContainer
com.arsdigita.bebop.BoxPanel
A container that prints its components in one row, either horizontally or vertically.
| Field Summary | |
static int |
HORIZONTAL
Specifies that components should be laid out left to right. |
static String |
versionId
|
static int |
VERTICAL
Specifies that components should be laid out top to bottom. |
| 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.util.BebopConstants |
BEBOP_BORDER, BEBOP_BOXPANEL, BEBOP_CELL, BEBOP_CHECKBOX, BEBOP_CHECKBOXGROUP, BEBOP_COLUMNPANEL, BEBOP_DATE, BEBOP_DATETIME, BEBOP_DHTMLEDITOR, BEBOP_FORMERRORS, BEBOP_FORMWIDGET, BEBOP_GRIDPANEL, BEBOP_LIST, BEBOP_MULTISELECT, BEBOP_OPTION, BEBOP_PAD, BEBOP_PADFRAME, BEBOP_PANELROW, BEBOP_PORTAL, BEBOP_PORTLET, BEBOP_RADIO, BEBOP_RADIOGROUP, BEBOP_SEG_BODY, BEBOP_SEG_HEADER, BEBOP_SEG_PANEL, BEBOP_SEGMENT, BEBOP_SELECT, BEBOP_TABLE, BEBOP_TABLEBODY, BEBOP_TABLEROW, BEBOP_TEXTAREA |
| Fields inherited from interface com.arsdigita.bebop.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
| Constructor Summary | |
BoxPanel()
Creates a box panel that lays out its components from top to bottom. |
|
BoxPanel(int axis)
Creates a box panel that lays out its components in the given direction. |
|
BoxPanel(int axis,
boolean centering)
Creates a box panel that lays out its components in the given direction and centers them if that is specified. |
|
| Method Summary | |
void |
generateXML(PageState state,
Element parent)
Adds nodes for the panel and its child components to be rendered, usually in a table. |
void |
setBorder(boolean isBorder)
Deprecated. Use setBorder(int border) instead. |
void |
setBorder(int border)
Sets the width of the border to draw around the components. |
void |
setWidth(String w)
Sets the width attribute of the box panel. |
| 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.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 |
public static final String versionId
public static final int HORIZONTAL
public static final int VERTICAL
| Constructor Detail |
public BoxPanel()
public BoxPanel(int axis)
axis - the axis to use to lay out the components
public BoxPanel(int axis,
boolean centering)
axis - the axis to use to lay out the componentscentering - true if the layout should be centered| Method Detail |
public void generateXML(PageState state,
Element parent)
parent and are not in any
of the cells that the box panel generates.
Generates DOM fragment:
<bebop:boxPanel [width=...] border=... center... axis...>
<bebop:cell> cell contents </bebop:cell>
</bebop:boxPanel>
generateXML in interface ComponentgenerateXML in class SimpleContainerstate - represents the current requestparent - the parent XML elementSimpleContainer.setTag(String),
SimpleContainer.setNamespace(String)public void setWidth(String w)
width attribute of an HTML
table element.
w - the width of the box panelpublic void setBorder(boolean isBorder)
setBorder(int border) instead.
isBorder - true if a border should be drawnpublic void setBorder(int border)
border attribute in an HTML
table element.
border - the width of the border
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||