public static interface ContentPanel.ContentPanelAppearance
SimpleContainer.add(Widget)
. The widget is resized
to match the size of the container. The footer contains a button bar with optional buttons.Modifier and Type | Method and Description |
---|---|
IconButton.IconConfig |
collapseIcon()
Returns the button icon that indicates a collapse is possible.
|
IconButton.IconConfig |
expandIcon()
Returns the button icon that indicates an expand is possible.
|
XElement |
getBodyWrap(XElement parent)
Returns the element that wraps the content panel body.
|
XElement |
getContentElem(XElement parent)
Returns the content panel body element.
|
XElement |
getFooterElem(XElement parent)
Returns the content panel footer element.
|
int |
getFrameHeight(XElement parent)
Returns the total height of the content panel frame elements.
|
int |
getFrameWidth(XElement parent)
Returns the total width of the content panel frame elements.
|
Header.HeaderAppearance |
getHeaderAppearance()
Returns the content panel header's appearance
|
XElement |
getHeaderElem(XElement parent)
Returns the content panel header element.
|
Size |
getHeaderSize(XElement parent)
Returns the header size excluding any framing.
|
void |
onBodyBorder(XElement parent,
boolean border)
Handles a change in the visibility of the body border.
|
void |
onHideHeader(XElement parent,
boolean hide)
Hides or shows the header.
|
void |
render(SafeHtmlBuilder sb)
Renders the appearance of a content panel as HTML into a
SafeHtmlBuilder , suitable for passing to
Element#setInnerSafeHtml(SafeHtml) on a container element. |
IconButton.IconConfig collapseIcon()
IconButton.IconConfig expandIcon()
XElement getBodyWrap(XElement parent)
parent
- the content panel root elementXElement getContentElem(XElement parent)
parent
- the content panel root elementXElement getFooterElem(XElement parent)
parent
- the content panel root elementint getFrameHeight(XElement parent)
parent
- the content panel root elementint getFrameWidth(XElement parent)
parent
- the content panel root elementHeader.HeaderAppearance getHeaderAppearance()
XElement getHeaderElem(XElement parent)
parent
- the content panel root elementSize getHeaderSize(XElement parent)
parent
- the content panel root elementvoid onBodyBorder(XElement parent, boolean border)
parent
- content panel root elementborder
- true to display the bordervoid onHideHeader(XElement parent, boolean hide)
parent
- content panel root elementhide
- true to hide the headervoid render(SafeHtmlBuilder sb)
SafeHtmlBuilder
, suitable for passing to
Element#setInnerSafeHtml(SafeHtml)
on a container element.sb
- receives the rendered appearanceCopyright © 2018. All rights reserved.