com.sencha.gxt.theme.base.client.widget
Class HeaderBaseAppearance
java.lang.Object
com.sencha.gxt.theme.base.client.widget.HeaderBaseAppearance
- All Implemented Interfaces:
- Header.HeaderAppearance
- Direct Known Subclasses:
- BlueAccordionHeaderAppearance, BlueHeaderAppearance
public class HeaderBaseAppearance
- extends Object
- implements Header.HeaderAppearance
HeaderBaseAppearance
public HeaderBaseAppearance()
HeaderBaseAppearance
public HeaderBaseAppearance(HeaderBaseAppearance.HeaderResources resources)
HeaderBaseAppearance
public HeaderBaseAppearance(HeaderBaseAppearance.HeaderResources resources,
HeaderBaseAppearance.Template template)
getBarElem
public XElement getBarElem(XElement parent)
- Description copied from interface:
Header.HeaderAppearance
- Returns the bar element for the specified header.
- Specified by:
getBarElem in interface Header.HeaderAppearance
- Parameters:
parent - the header root element
- Returns:
- the bar element
getTextElem
public XElement getTextElem(XElement parent)
- Description copied from interface:
Header.HeaderAppearance
- Returns the text element for the specified header.
- Specified by:
getTextElem in interface Header.HeaderAppearance
- Parameters:
parent - the header root element
- Returns:
- the text element
render
public void render(SafeHtmlBuilder sb)
- Description copied from interface:
Header.HeaderAppearance
- Renders the appearance of a header as HTML into a
SafeHtmlBuilder
suitable for passing to Element.setInnerHTML(String) on a
container element.
- Specified by:
render in interface Header.HeaderAppearance
- Parameters:
sb - receives the rendered appearance
setIcon
public void setIcon(XElement parent,
ImageResource icon)
- Description copied from interface:
Header.HeaderAppearance
- Sets the icon for the specified header.
- Specified by:
setIcon in interface Header.HeaderAppearance
- Parameters:
parent - the header root elementicon - the icon to display in the header
Copyright © 2012. All Rights Reserved.