|
|||||||||||
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.SplitPanel
Consists of two table cells with a dividing bar in the middle. This container is used only for layout. It is intended to be used as a parent class for a wizard-type SplitWizard component.
This container contains three components: "left", "right" and "header".
All three components must be present (non-null) before SplitPanel
is locked. An exception will be thrown if this is not the case.
Field Summary | |
static String |
BORDER
The border attribute. |
static String |
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 | |
SplitPanel()
Constructs a new, empty SplitPanel. |
|
SplitPanel(Component left,
Component right)
Constructs a new SplitPanel with the specified left and right components. |
|
SplitPanel(Component header,
Component left,
Component right)
Constructs a new SplitPanel with the specified left, right and header components. |
Method Summary | |
void |
generateXML(PageState state,
Element parent)
Generates XML for the panel. |
boolean |
getBorder()
Determine whether this panel has a border. |
int |
getDivider()
Retrieves the divider position |
Component |
getHeader()
Gets the header component. |
Component |
getLeftComponent()
Gets the left component. |
Component |
getRightComponent()
Gets the right component. |
void |
lock()
Verifies that the header, left, and right components exist. |
void |
setBorder(boolean border)
Sets the border. |
void |
setDivider(int divider)
Sets the divider position. |
void |
setHeader(Component c)
Sets the header. |
void |
setLeftComponent(Component c)
Sets the left component. |
void |
setRightComponent(Component c)
Sets the right component. |
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, 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 |
Field Detail |
public static final String versionId
public static final String BORDER
Constructor Detail |
public SplitPanel()
public SplitPanel(Component left, Component right)
public SplitPanel(Component header, Component left, Component right)
Method Detail |
public void setDivider(int divider)
divider
- the position of the dividerpublic final int getDivider()
public void setBorder(boolean border)
public boolean getBorder()
true
if the split panel has a border;
false
otherwise.public final Component getLeftComponent()
public final Component getRightComponent()
public final Component getHeader()
public void setHeader(Component c)
c
- the new component to be put in the headerpublic void setLeftComponent(Component c)
c
- the new component to be put in the left slotpublic void setRightComponent(Component c)
c
- the new component to be put in the right slotpublic void generateXML(PageState state, Element parent)
<bebop:splitPanel>
<XML for the left component />
<XML for the right component />
</bebop:splitPanel>
generateXML
in interface Component
generateXML
in class SimpleContainer
state
- the current page stateparent
- the parent under which the XML should be placedSimpleContainer.setTag(String)
,
SimpleContainer.setNamespace(String)
public void lock()
lock
in interface Lockable
lock
in class SimpleComponent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |