Class HeaderDefaultAppearance
- java.lang.Object
-
- com.sencha.gxt.theme.base.client.widget.HeaderDefaultAppearance
-
- All Implemented Interfaces:
Header.HeaderAppearance
- Direct Known Subclasses:
BlueAccordionHeaderAppearance,BlueHeaderAppearance,GrayAccordionHeaderAppearance,GrayHeaderAppearance
public class HeaderDefaultAppearance extends Object implements Header.HeaderAppearance
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHeaderDefaultAppearance.HeaderResourcesstatic interfaceHeaderDefaultAppearance.HeaderStylestatic interfaceHeaderDefaultAppearance.Template
-
Constructor Summary
Constructors Constructor Description HeaderDefaultAppearance()HeaderDefaultAppearance(HeaderDefaultAppearance.HeaderResources resources)HeaderDefaultAppearance(HeaderDefaultAppearance.HeaderResources resources, HeaderDefaultAppearance.Template template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XElementgetBarElem(XElement parent)Returns the bar element for the specified header.XElementgetHeadingElem(XElement parent)Returns the heading element for the specified header.voidrender(com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)Renders the appearance of a header as HTML into aSafeHtmlBuildersuitable for passing toElement.setInnerSafeHtml(SafeHtml)on a container element.voidsetIcon(XElement parent, com.google.gwt.resources.client.ImageResource icon)Sets the icon for the specified header.
-
-
-
Constructor Detail
-
HeaderDefaultAppearance
public HeaderDefaultAppearance()
-
HeaderDefaultAppearance
public HeaderDefaultAppearance(HeaderDefaultAppearance.HeaderResources resources)
-
HeaderDefaultAppearance
public HeaderDefaultAppearance(HeaderDefaultAppearance.HeaderResources resources, HeaderDefaultAppearance.Template template)
-
-
Method Detail
-
getBarElem
public XElement getBarElem(XElement parent)
Description copied from interface:Header.HeaderAppearanceReturns the bar element for the specified header.- Specified by:
getBarElemin interfaceHeader.HeaderAppearance- Parameters:
parent- the header root element- Returns:
- the bar element
-
getHeadingElem
public XElement getHeadingElem(XElement parent)
Description copied from interface:Header.HeaderAppearanceReturns the heading element for the specified header.- Specified by:
getHeadingElemin interfaceHeader.HeaderAppearance- Parameters:
parent- the header root element- Returns:
- the heading element
-
render
public void render(com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)
Description copied from interface:Header.HeaderAppearanceRenders the appearance of a header as HTML into aSafeHtmlBuildersuitable for passing toElement.setInnerSafeHtml(SafeHtml)on a container element.- Specified by:
renderin interfaceHeader.HeaderAppearance- Parameters:
sb- receives the rendered appearance
-
setIcon
public void setIcon(XElement parent, com.google.gwt.resources.client.ImageResource icon)
Description copied from interface:Header.HeaderAppearanceSets the icon for the specified header.- Specified by:
setIconin interfaceHeader.HeaderAppearance- Parameters:
parent- the header root elementicon- the icon to display in the header
-
-