
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, waitgetHeaderAppearanceprotected 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.ContentPanelAppearanceonHideHeader in interface ContentPanel.ContentPanelAppearanceparent - content panel root elementhide - true to hide the headerpublic void onBodyBorder(XElement parent, boolean border)
ContentPanel.ContentPanelAppearanceonBodyBorder in interface ContentPanel.ContentPanelAppearanceparent - content panel root elementborder - true to display the borderpublic XElement getBodyWrap(XElement parent)
ContentPanel.ContentPanelAppearancegetBodyWrap in interface ContentPanel.ContentPanelAppearanceparent - the content panel root elementpublic XElement getContentElem(XElement parent)
ContentPanel.ContentPanelAppearancegetContentElem in interface ContentPanel.ContentPanelAppearanceparent - the content panel root elementpublic XElement getFooterElem(XElement parent)
ContentPanel.ContentPanelAppearancegetFooterElem in interface ContentPanel.ContentPanelAppearanceparent - the content panel root elementpublic int getFrameHeight(XElement parent)
ContentPanel.ContentPanelAppearancegetFrameHeight in interface ContentPanel.ContentPanelAppearanceparent - the content panel root elementpublic int getFrameWidth(XElement parent)
ContentPanel.ContentPanelAppearancegetFrameWidth in interface ContentPanel.ContentPanelAppearanceparent - the content panel root elementpublic Size getHeaderSize(XElement parent)
ContentPanel.ContentPanelAppearancegetHeaderSize in interface ContentPanel.ContentPanelAppearanceparent - the content panel root elementpublic XElement getHeaderElem(XElement parent)
ContentPanel.ContentPanelAppearancegetHeaderElem in interface ContentPanel.ContentPanelAppearanceparent - the content panel root elementpublic void render(SafeHtmlBuilder sb)
ContentPanel.ContentPanelAppearanceSafeHtmlBuilder, suitable for passing to
Element#setInnerSafeHtml(SafeHtml) on a container element.render in interface ContentPanel.ContentPanelAppearancesb - receives the rendered appearancepublic IconButton.IconConfig collapseIcon()
ContentPanel.ContentPanelAppearancecollapseIcon in interface ContentPanel.ContentPanelAppearancepublic IconButton.IconConfig expandIcon()
ContentPanel.ContentPanelAppearanceexpandIcon in interface ContentPanel.ContentPanelAppearanceCopyright © 2018. All rights reserved.