Package org.openfaces.component.window

Examples of org.openfaces.component.window.Window


    @Override
    public void setComponentProperties(FacesContext facesContext, UIComponent component) {
        super.setComponentProperties(facesContext, component);

        Window window = (Window) component;
        setBooleanProperty(window, "resizable");
        setStringProperty(window, "minWidth");
        setStringProperty(window, "minHeight");
    }
View Full Code Here


* @author Dmitry Pikhulya
*/
public class WindowRenderer extends AbstractWindowRenderer {
    @Override
    protected void encodeContentPane(FacesContext context, AbstractWindow abstractWindow) throws IOException {
        Window win = (Window) abstractWindow;
        String clientId = win.getClientId(context);
        ResponseWriter writer = context.getResponseWriter();
//        writer.startElement("div", win);
//        writer.writeAttribute("class", "o_windowContentContainer", null);
        writer.startElement("div", win);
        writer.writeAttribute("id", clientId + MIDDLE_AREA_SUFFIX, null);
        Rendering.writeStyleAndClassAttributes(writer, win.getContentStyle(), win.getContentClass(), getDefaultContentClass());
        ComponentWithCaptionRenderer.renderChildren(context, abstractWindow);
        encodeCustomContent(context, abstractWindow);
        writer.endElement("div");
//        writer.endElement("div");
    }
View Full Code Here

TOP

Related Classes of org.openfaces.component.window.Window

Copyright © 2018 www.massapicom. 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.