Examples of BorderLayoutPanel


Examples of org.openfaces.component.panel.BorderLayoutPanel

    @Override
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        if (!component.isRendered()) return;
        super.encodeBegin(context, component);
        ResponseWriter writer = context.getResponseWriter();
        BorderLayoutPanel borderLayoutPanel = (BorderLayoutPanel) component;
        String clientId = borderLayoutPanel.getClientId(context);
        writer.startElement("div", borderLayoutPanel);
        writer.writeAttribute("id", clientId, null);
        writeAttribute(writer, "style", borderLayoutPanel.getStyle());
        String classStr = Styles.getCSSClass(context,
                borderLayoutPanel, borderLayoutPanel.getStyle(),
                "o_borderlayoutpanel_container", borderLayoutPanel.getStyleClass()
        );
        writer.writeAttribute("class", classStr, null);

        Rendering.writeStandardEvents(writer, borderLayoutPanel);
        encodeScriptsAndStyles(context, borderLayoutPanel);
        encodeSidePanels(context, borderLayoutPanel);

        writer.startElement("div", borderLayoutPanel);
        writer.writeAttribute("id", clientId + "::content", null);
        String contentClassStr = Styles.getCSSClass(context,
                borderLayoutPanel, borderLayoutPanel.getContentStyle(),
                "o_borderlayoutpanel_content", borderLayoutPanel.getContentClass()
        );
        writer.writeAttribute("class", contentClassStr, null);

        encodeScriptsAndStyles_content(context, borderLayoutPanel, clientId);
    }
View Full Code Here

Examples of org.openfaces.component.panel.BorderLayoutPanel

    }

    @Override
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
        if (!component.isRendered()) return;
        BorderLayoutPanel borderLayoutPanel = (BorderLayoutPanel) component;
        List<UIComponent> children = borderLayoutPanel.getChildren();
        List<UIComponent> contentElements = new ArrayList<UIComponent>();
        for (UIComponent child : children) {
            if (!(child instanceof SidePanel)) {
                contentElements.add(child);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.