Examples of VerticalSplitPanel


Examples of com.vaadin.ui.VerticalSplitPanel

        split.addComponent(p);
        p = buildPanel("Right");
        p.setSizeFull();
        split.addComponent(p);

        final VerticalSplitPanel split2 = new VerticalSplitPanel();
        split2.setWidth("200px");
        split2.setHeight("200px");
        split2.setLocked(true);
        p = buildPanel("Top");
        p.setSizeFull();
        split2.addComponent(p);
        p = buildPanel("Bottom");
        p.setSizeFull();
        split2.addComponent(p);

        getLayout().addComponent(
                new Button("Unlock", new Button.ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        split.setLocked(false);
                        split2.setLocked(false);
                        getMainWindow().showNotification(
                                "Try moving split. Then reload page.",
                                Notification.TYPE_WARNING_MESSAGE);
                        getLayout().removeComponent(event.getButton());
                    }
View Full Code Here

Examples of com.vaadin.ui.VerticalSplitPanel

        public MainLayout() {
            super(1, 3);
            setSizeFull();

            VerticalSplitPanel splitPanel = new VerticalSplitPanel();
            splitPanel.setFirstComponent(new Label("Top"));
            splitPanel.setSecondComponent(new Label("Middle"));
            splitPanel.setSplitPosition(50, Sizeable.Unit.PERCENTAGE);

            HorizontalLayout bottom = new HorizontalLayout();
            bottom.setWidth("100%");
            bottom.addComponent(new Label("Bottom"));
View Full Code Here

Examples of com.vaadin.ui.VerticalSplitPanel

public class SplitPanelWithRichTextArea extends TestBase {

    @Override
    protected void setup() {
        VerticalSplitPanel sp = new VerticalSplitPanel();
        sp.setSizeFull();
        RichTextArea rta = new RichTextArea();
        rta.setSizeFull();
        Label label = new Label("One side of the panel");

        sp.setFirstComponent(label);
        sp.setSecondComponent(rta);

        addComponent(sp);
        sp.setSizeFull();
        getLayout().setSizeFull();

    }
View Full Code Here

Examples of com.vaadin.ui.VerticalSplitPanel

        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");
        sp2.setHeight("200px");
        sp2.addStyleName("large");
        sp2.setFirstComponent(getContent());
        sp2.setSecondComponent(getContent());
        row.addComponent(sp2);
    }
View Full Code Here

Examples of com.vaadin.ui.VerticalSplitPanel

        // TODO: add a header to switch the style, etc
        // TODO: add bookmark to set the style
        final Window mainWindow = new Window("Dev");

        if (server.getConfig().isDevelopmentHeader()) {
            final VerticalSplitPanel mainLayout = new VerticalSplitPanel();
            mainLayout.setSizeFull();
            mainLayout.setSplitPosition(SPLIT_POSITION, Sizeable.UNITS_PIXELS);
            mainLayout.setLocked(true);

            final DevApplicationHeader header = new DevApplicationHeader(server);
            header.setSpacing(true);
            mainLayout.setFirstComponent(header);

            mainLayout.setSecondComponent(layout);

            mainWindow.setContent(mainLayout);
        } else {
            mainWindow.setContent(layout);
        }
View Full Code Here

Examples of com.vaadin.ui.VerticalSplitPanel

    public DevApplication wrapLayout(Layout layout) {
        // TODO: add a header to switch the style, etc
        // TODO: add bookmark to set the style
        final Root root;
        if (server.getConfig().isDevelopmentHeader()) {
            final VerticalSplitPanel mainLayout = new VerticalSplitPanel();
            mainLayout.setSizeFull();
            mainLayout.setSplitPosition(20, Sizeable.Unit.PIXELS);
            mainLayout.setLocked(true);

            final DevApplicationHeader header = new DevApplicationHeader(server);
            header.setSpacing(true);
            mainLayout.setFirstComponent(header);

            mainLayout.setSecondComponent(layout);

            root = new DevRoot(mainLayout);
        } else {
            root = new DevRoot(layout);
        }
View Full Code Here

Examples of com.vaadin.ui.VerticalSplitPanel

        // TODO: add a header to switch the style, etc
        // TODO: add bookmark to set the style
        final Window mainWindow = new Window("Dev");

        if (server.getConfig().isDevelopmentHeader()) {
            final VerticalSplitPanel mainLayout = new VerticalSplitPanel();
            mainLayout.setSizeFull();
            mainLayout.setSplitPosition(20, Sizeable.UNITS_PIXELS);
            mainLayout.setLocked(true);

            final DevApplicationHeader header = new DevApplicationHeader(server);
            header.setSpacing(true);
            mainLayout.setFirstComponent(header);

            mainLayout.setSecondComponent(layout);

            mainWindow.setContent(mainLayout);
        } else {
            mainWindow.setContent(layout);
        }
View Full Code Here

Examples of com.vaadin.ui.VerticalSplitPanel

     */
    public UI wrapLayout(Layout layout) {
        // TODO: add a header to switch the style, etc
        // TODO: add bookmark to set the style
        if (server.getConfig().isDevelopmentHeader()) {
            final VerticalSplitPanel mainLayout = new VerticalSplitPanel();
            mainLayout.setSizeFull();
            mainLayout.setSplitPosition(SPLIT_POSITION, Sizeable.Unit.PIXELS);
            mainLayout.setLocked(true);

            final DevApplicationHeader header = new DevApplicationHeader(server);
            header.setSpacing(true);
            mainLayout.setFirstComponent(header);

            mainLayout.setSecondComponent(layout);

            return new DevUI(mainLayout);
        } else {
            return new DevUI(layout);
        }
View Full Code Here

Examples of com.vaadin.ui.VerticalSplitPanel

    public Application wrapLayout(Layout layout) {
        // TODO: add a header to switch the style, etc
        // TODO: add bookmark to set the style
        final Window mainWindow = new Window("Dev");

        final VerticalSplitPanel mainLayout = new VerticalSplitPanel();
        mainLayout.setSizeFull();
        mainLayout.setSplitPosition(20, Sizeable.UNITS_PIXELS);
        mainLayout.setLocked(true);

        final DevApplicationHeader header = new DevApplicationHeader(server);
        header.setSpacing(true);
        mainLayout.setFirstComponent(header);

        mainLayout.setSecondComponent(layout);

        mainWindow.setContent(mainLayout);

        return new DevApplication(server, mainWindow);
    }
View Full Code Here
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.