Package org.gwtoolbox.widget.client.panel.windowingsystem

Examples of org.gwtoolbox.widget.client.panel.windowingsystem.WindowingSystem


@PanelSample
public class WindowingSystemSample extends Composite implements SamplePanel {

    public WindowingSystemSample() {

        WindowingSystem ws = new WindowingSystem(createContent("Center", "#FFC0CB", "black"));

        WindowSpec printerWindow = new WindowSpec("red", "Red", createContent("Red content", "red", "white"), "25%");
        printerWindow.setPosition(WindowingSystem.Position.LEFT);
        ws.addWindow(printerWindow);

        WindowSpec blueCubeWindow = new WindowSpec("blue", "Blue", createContent("Blue content", "blue", "white"), "50%");
        blueCubeWindow.setPosition(WindowingSystem.Position.LEFT);
        ws.addWindow(blueCubeWindow);

        WindowSpec greenCubeWindow = new WindowSpec("green", "Green", createContent("Green content", "green", "white"), "30%");
        greenCubeWindow.setPosition(WindowingSystem.Position.RIGHT);
        ws.addWindow(greenCubeWindow);

        WindowSpec greenCubeWindow2 = new WindowSpec("orange", "Orange", createContent("Orange content", "orange", "black"), "30%");
        greenCubeWindow2.setPosition(WindowingSystem.Position.BOTTOM);
        ws.addWindow(greenCubeWindow2);

        ws.setStatusBarText("This is a message");
        ws.setSize("100%", "100%");
        initWidget(ws);
    }
View Full Code Here

TOP

Related Classes of org.gwtoolbox.widget.client.panel.windowingsystem.WindowingSystem

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.