com.sencha.gxt.theme.base.client.widget
Class HeaderBaseAppearance

java.lang.Object
  extended by 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


Nested Class Summary
static interface HeaderBaseAppearance.HeaderResources
           
static interface HeaderBaseAppearance.HeaderStyle
           
static interface HeaderBaseAppearance.Template
           
 
Constructor Summary
HeaderBaseAppearance()
           
HeaderBaseAppearance(HeaderBaseAppearance.HeaderResources resources)
           
HeaderBaseAppearance(HeaderBaseAppearance.HeaderResources resources, HeaderBaseAppearance.Template template)
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderBaseAppearance

public HeaderBaseAppearance()

HeaderBaseAppearance

public HeaderBaseAppearance(HeaderBaseAppearance.HeaderResources resources)

HeaderBaseAppearance

public HeaderBaseAppearance(HeaderBaseAppearance.HeaderResources resources,
                            HeaderBaseAppearance.Template template)
Method Detail

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 element
icon - the icon to display in the header


Copyright © 2012. All Rights Reserved.