Interface CollapsePanel.CollapsePanelAppearance
-
- All Known Implementing Classes:
BlueCollapsePanelAppearance,CollapsePanelDefaultAppearance,GrayCollapsePanelAppearance
- Enclosing class:
- CollapsePanel
public static interface CollapsePanel.CollapsePanelAppearanceProvides the appearance of aCollapsePanel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XElementiconWrap(XElement parent)Returns the element that wraps the icon for theCollapsePanel.voidrender(com.google.gwt.safehtml.shared.SafeHtmlBuilder sb, Style.LayoutRegion region, boolean header)Renders theCollapsePanelappearance for the given region into safe HTML.XElementtextWrap(XElement parent)Returns the element that wraps the text for theCollapsePanel.
-
-
-
Method Detail
-
render
void render(com.google.gwt.safehtml.shared.SafeHtmlBuilder sb, Style.LayoutRegion region, boolean header)Renders theCollapsePanelappearance for the given region into safe HTML.- Parameters:
sb- receives the rendered appearanceregion- the regionheader- true to include header text
-
iconWrap
XElement iconWrap(XElement parent)
Returns the element that wraps the icon for theCollapsePanel.- Parameters:
parent- the parent of the icon wrapper (generallyComponent.getElement()).- Returns:
- the icon wrapper
-
textWrap
XElement textWrap(XElement parent)
Returns the element that wraps the text for theCollapsePanel.- Parameters:
parent- the parent of the text wrapper (generallyComponent.getElement()).- Returns:
- the text wrapper
-
-