01: package com.icesoft.faces.component.paneltabset;
02:
03: import com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer;
04: import com.icesoft.faces.renderkit.dom_html_basic.HTML;
05: import com.icesoft.faces.context.DOMContext;
06: import org.w3c.dom.Element;
07:
08: /**
09: * <p>PanelTabRenderer extends GroupRenderer and is responsible for
10: * rendering the PanelTab's child components. The rendering of the
11: * actual tab is done by PanelTabSetRenderer.</p>
12: */
13: public class PanelTabRenderer extends GroupRenderer {
14:
15: protected Element createRootElement(DOMContext domContext) {
16: // The SPAN that our superclass renders causes problems in
17: // some browsers, so we render a DIV here, to avoid that
18: return domContext.createElement(HTML.DIV_ELEM);
19: }
20:
21: protected void renderStyleAndStyleClass(String style,
22: String styleClass, Element root) {
23: // Do not render out the style or styleClass attributes to root,
24: // since PanelTab's styling is not for it as a container, but
25: // instead for the actual tabs that you click on.
26: }
27: }
|