public abstract class ContentPanelBaseAppearance extends Object implements ContentPanel.ContentPanelAppearance
Modifier and Type | Class and Description |
---|---|
static interface |
ContentPanelBaseAppearance.ContentPanelResources |
static interface |
ContentPanelBaseAppearance.ContentPanelStyle |
static interface |
ContentPanelBaseAppearance.ContentPanelTemplate |
Modifier and Type | Field and Description |
---|---|
protected ContentPanelBaseAppearance.ContentPanelResources |
resources |
protected ContentPanelBaseAppearance.ContentPanelStyle |
style |
protected ContentPanelBaseAppearance.ContentPanelTemplate |
template |
Constructor and Description |
---|
ContentPanelBaseAppearance() |
ContentPanelBaseAppearance(ContentPanelBaseAppearance.ContentPanelResources resources) |
ContentPanelBaseAppearance(ContentPanelBaseAppearance.ContentPanelResources resources,
ContentPanelBaseAppearance.ContentPanelTemplate template) |
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.
|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeaderAppearance
protected ContentPanelBaseAppearance.ContentPanelTemplate template
protected final ContentPanelBaseAppearance.ContentPanelStyle style
protected final ContentPanelBaseAppearance.ContentPanelResources resources
public ContentPanelBaseAppearance()
public ContentPanelBaseAppearance(ContentPanelBaseAppearance.ContentPanelResources resources)
public ContentPanelBaseAppearance(ContentPanelBaseAppearance.ContentPanelResources resources, ContentPanelBaseAppearance.ContentPanelTemplate template)
public void onHideHeader(XElement parent, boolean hide)
ContentPanel.ContentPanelAppearance
onHideHeader
in interface ContentPanel.ContentPanelAppearance
parent
- content panel root elementhide
- true to hide the headerpublic void onBodyBorder(XElement parent, boolean border)
ContentPanel.ContentPanelAppearance
onBodyBorder
in interface ContentPanel.ContentPanelAppearance
parent
- content panel root elementborder
- true to display the borderpublic XElement getBodyWrap(XElement parent)
ContentPanel.ContentPanelAppearance
getBodyWrap
in interface ContentPanel.ContentPanelAppearance
parent
- the content panel root elementpublic XElement getContentElem(XElement parent)
ContentPanel.ContentPanelAppearance
getContentElem
in interface ContentPanel.ContentPanelAppearance
parent
- the content panel root elementpublic XElement getFooterElem(XElement parent)
ContentPanel.ContentPanelAppearance
getFooterElem
in interface ContentPanel.ContentPanelAppearance
parent
- the content panel root elementpublic int getFrameHeight(XElement parent)
ContentPanel.ContentPanelAppearance
getFrameHeight
in interface ContentPanel.ContentPanelAppearance
parent
- the content panel root elementpublic int getFrameWidth(XElement parent)
ContentPanel.ContentPanelAppearance
getFrameWidth
in interface ContentPanel.ContentPanelAppearance
parent
- the content panel root elementpublic Size getHeaderSize(XElement parent)
ContentPanel.ContentPanelAppearance
getHeaderSize
in interface ContentPanel.ContentPanelAppearance
parent
- the content panel root elementpublic XElement getHeaderElem(XElement parent)
ContentPanel.ContentPanelAppearance
getHeaderElem
in interface ContentPanel.ContentPanelAppearance
parent
- the content panel root elementpublic void render(SafeHtmlBuilder sb)
ContentPanel.ContentPanelAppearance
SafeHtmlBuilder
, suitable for passing to
Element#setInnerSafeHtml(SafeHtml)
on a container element.render
in interface ContentPanel.ContentPanelAppearance
sb
- receives the rendered appearancepublic IconButton.IconConfig collapseIcon()
ContentPanel.ContentPanelAppearance
collapseIcon
in interface ContentPanel.ContentPanelAppearance
public IconButton.IconConfig expandIcon()
ContentPanel.ContentPanelAppearance
expandIcon
in interface ContentPanel.ContentPanelAppearance
Copyright © 2018. All rights reserved.