Package com.ponysdk.ui.server.basic

Examples of com.ponysdk.ui.server.basic.PSplitLayoutPanel$SplitInfoHolder


    @Override
    protected void onFirstShowPage() {
        super.onFirstShowPage();

        final PSplitLayoutPanel splitLayoutPanel = new PSplitLayoutPanel();

        splitLayoutPanel.addNorth(buildComponent("north", "#f2a45c"), 50);
        splitLayoutPanel.addSouth(south = buildComponent("south", "#75ffdc"), 50);
        splitLayoutPanel.addEast(east = buildComponent("east", "#b879fc"), 100);
        splitLayoutPanel.addWest(west = buildComponent("west", "#e8b6ea"), 100);
        splitLayoutPanel.add(buildCenterPanel());

        splitLayoutPanel.setWidgetToggleDisplayAllowed(east, true);
        splitLayoutPanel.setWidgetToggleDisplayAllowed(west, true);
        splitLayoutPanel.setWidgetSnapClosedSize(south, 40);
        splitLayoutPanel.setWidgetToggleDisplayAllowed(south, true);

        splitLayoutPanel.addLayoutResizeHandler(new PLayoutResizeHandler() {

            @Override
            public void onLayoutResize(final PLayoutResizeEvent resizeEvent) {
                for (final LayoutResizeData data : resizeEvent.getLayoutResizeData()) {
                    if (data.w == south) {
View Full Code Here


        header = new PSimpleLayoutPanel();
        panel.addNorth(header, headerHeight);
    }

    protected void buildCenter() {
        center = new PSplitLayoutPanel();
        buildLogs();
        buildMenu();
        buildBody();
    }
View Full Code Here

    public SimpleView() {
        super(PUnit.PX);
        setSizeFull();

        center = new PSplitLayoutPanel();
        center.setSizeFull();
        center.add(body);

        add(center);
    }
View Full Code Here

        addNorth(header, 4);
        addSouth(footer, 3);
        addWest(menu, 10);

        final PSplitLayoutPanel splitLayoutPanel = new PSplitLayoutPanel();
        splitLayoutPanel.setSizeFull();
        splitLayoutPanel.addSouth(logs, 70);
        splitLayoutPanel.add(body);
        body.setSizeFull();

        add(splitLayoutPanel);
    }
View Full Code Here

TOP

Related Classes of com.ponysdk.ui.server.basic.PSplitLayoutPanel$SplitInfoHolder

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.