Package com.vaadin.ui

Examples of com.vaadin.ui.HorizontalSplitPanel


        vl.setWidth(200, Sizeable.UNITS_PIXELS);
        vl.setHeight(200, Sizeable.UNITS_PIXELS);
        modalWindow.setModal(true); // This line causes the problem
        getMainWindow().addWindow(modalWindow);

        HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
        splitPanel.setSplitPosition(20);
        vl.addComponent(splitPanel);
    }
View Full Code Here


public class SplitPanelSwapComponents extends TestBase {

    @Override
    protected void setup() {
        final HorizontalSplitPanel hsplit = new HorizontalSplitPanel();
        hsplit.setWidth("300px");
        hsplit.setHeight("300px");
        hsplit.setSecondComponent(new Label("A label"));
        hsplit.setFirstComponent(new Label("Another label"));
        getLayout().addComponent(hsplit);

        Button swap = new Button("Swap components", new Button.ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                Component first = hsplit.getFirstComponent();
                hsplit.removeComponent(first);

                Component second = hsplit.getSecondComponent();
                hsplit.removeComponent(second);

                hsplit.setFirstComponent(second);
                hsplit.setSecondComponent(first);
            }
        });

        getLayout().addComponent(swap);
View Full Code Here

        ts.addTab(getBigComponent(), "Tab 2");
        return ts;
    }

    private Component getSplitPanelTest() {
        HorizontalSplitPanel sp = new HorizontalSplitPanel();
        sp.setCaption("Splitpanel");
        sp.addComponent(getBigComponent());
        sp.addComponent(getBigComponent());
        return sp;
    }
View Full Code Here

    private HorizontalLayout hl;
    private Button b;

    @Override
    public void init() {
        sp = new HorizontalSplitPanel();
        sp.setSizeFull();
        sp.setSplitPosition(0, Sizeable.UNITS_PIXELS);

        hl = new HorizontalLayout();
        hl.setMargin(true);
View Full Code Here

        row.addStyleName("wrapping");
        row.setSpacing(true);
        row.setMargin(new MarginInfo(true, false, false, false));
        addComponent(row);

        HorizontalSplitPanel sp = new HorizontalSplitPanel();
        sp.setCaption("Default style");
        sp.setWidth("400px");
        sp.setHeight(null);
        sp.setFirstComponent(getContent());
        sp.setSecondComponent(getContent());
        row.addComponent(sp);

        VerticalSplitPanel sp2 = new VerticalSplitPanel();
        sp2.setCaption("Default style");
        sp2.setWidth("300px");
        sp2.setHeight("200px");
        sp2.setFirstComponent(getContent());
        sp2.setSecondComponent(getContent());
        row.addComponent(sp2);

        sp = new HorizontalSplitPanel();
        sp.setCaption("Large style");
        sp.setWidth("300px");
        sp.setHeight("200px");
        sp.addStyleName("large");
        sp.setFirstComponent(getContent());
        sp.setSecondComponent(getContent());
        row.addComponent(sp);

        sp2 = new VerticalSplitPanel();
        sp2.setCaption("Large style");
        sp2.setWidth("300px");
View Full Code Here

        Label lblAppTitle = new Label("Demo Gallery for Invient Charts");
        lblAppTitle.setSizeFull();
        lblAppTitle.setStyleName("v-label-app-title");
        infoBar.addComponent(lblAppTitle);

        mainSplit = new HorizontalSplitPanel();
        mainSplit.setSizeFull();
        mainLayout.addComponent(mainSplit);
        mainLayout.setExpandRatio(mainSplit, 1);

        leftLayout = new VerticalLayout();
View Full Code Here

TOP

Related Classes of com.vaadin.ui.HorizontalSplitPanel

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.