Package org.jboss.ballroom.client.widgets.window

Source Code of org.jboss.ballroom.client.widgets.window.WindowContentBuilder

package org.jboss.ballroom.client.widgets.window;

import com.google.gwt.dom.client.Style;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.Widget;

/**
* @author Heiko Braun
* @date 6/9/11
*/
public class WindowContentBuilder {

    private Widget options;
    private Widget content;

    public WindowContentBuilder(Widget contentPanel, Widget options) {
        this.options = options;
        this.content = contentPanel;
    }

    public Widget build() {
        DockLayoutPanel wrapper = new DockLayoutPanel(Style.Unit.PX);
        wrapper.addSouth(options, 35);

        ScrollPanel scroll = new ScrollPanel(content);
        wrapper.add(scroll);

        return wrapper;
    }
}
TOP

Related Classes of org.jboss.ballroom.client.widgets.window.WindowContentBuilder

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.