com.sencha.gxt.widget.core.client
Interface Header.HeaderAppearance

All Known Subinterfaces:
ContentPanel.PanelHeaderAppearance
All Known Implementing Classes:
BlueAccordionHeaderAppearance, BlueHeaderAppearance, BlueHeaderFramedAppearance, GrayHeaderAppearance, GrayHeaderFramedAppearance, HeaderDefaultAppearance
Enclosing class:
Header

public static interface Header.HeaderAppearance

The appearance of a header. A header has a bar that contains an icon and text.


Method Summary
 XElement getBarElem(XElement parent)
          Returns the bar element for the specified header.
 XElement getTextElem(XElement parent)
          Returns the text element for the specified header.
 void render(SafeHtmlBuilder sb)
          Renders the appearance of a header as HTML into a SafeHtmlBuilder suitable for passing to Element.setInnerHTML(String) on a container element.
 void setIcon(XElement parent, ImageResource icon)
          Sets the icon for the specified header.
 

Method Detail

getBarElem

XElement getBarElem(XElement parent)
Returns the bar element for the specified header.

Parameters:
parent - the header root element
Returns:
the bar element

getTextElem

XElement getTextElem(XElement parent)
Returns the text element for the specified header.

Parameters:
parent - the header root element
Returns:
the text element

render

void render(SafeHtmlBuilder sb)
Renders the appearance of a header as HTML into a SafeHtmlBuilder suitable for passing to Element.setInnerHTML(String) on a container element.

Parameters:
sb - receives the rendered appearance

setIcon

void setIcon(XElement parent,
             ImageResource icon)
Sets the icon for the specified header.

Parameters:
parent - the header root element
icon - the icon to display in the header


Copyright © 2012. All Rights Reserved.