Example usage for com.vaadin.ui VerticalLayout setWidth

List of usage examples for com.vaadin.ui VerticalLayout setWidth

Introduction

In this page you can find the example usage for com.vaadin.ui VerticalLayout setWidth.

Prototype

@Override
    public void setWidth(String width) 

Source Link

Usage

From source file:org.ikasan.dashboard.ui.framework.panel.LandingViewPanel.java

License:BSD License

protected void init() {
    addStyleName(ValoTheme.PANEL_BORDERLESS);

    VerticalLayout verticalLayout = new VerticalLayout();
    verticalLayout.setWidth("100%");
    verticalLayout.setHeight("100%");
    verticalLayout.setMargin(true);/*w ww .  j  a  v a  2s . c o  m*/
    verticalLayout.addStyleName("dashboard-view");

    Responsive.makeResponsive(verticalLayout);

    Component content = buildContent();
    verticalLayout.addComponent(content);

    verticalLayout.setExpandRatio(content, 1);

    this.setSizeFull();
    this.setContent(verticalLayout);
}

From source file:org.ikasan.dashboard.ui.framework.panel.PersistanceSetupPanel.java

License:BSD License

protected void createNotCreatedView() {
    VerticalLayout verticalLayout = new VerticalLayout();
    verticalLayout.setWidth("100%");
    verticalLayout.setHeight("100%");
    verticalLayout.setMargin(true);//from  w w w . j a va2s.com

    Label ikasanWelcomeLabel1 = new Label("Welcome to Ikasan!");
    ikasanWelcomeLabel1.setStyleName("xlarge");
    ikasanWelcomeLabel1.setWidth("100%");
    ikasanWelcomeLabel1.setHeight("30px");

    Label ikasanWelcomeLabel2 = new Label("It appears that you are setting up Ikasan for the"
            + " first time and we need to create some database tables. If this is not the first time accessing the "
            + "Ikasan Console, it appears that there is an issue with the Ikasan database. If this is the case please "
            + "contact your local database administrator.");

    ikasanWelcomeLabel2.setStyleName("large");
    ikasanWelcomeLabel2.setWidth("60%");
    ikasanWelcomeLabel2.setHeight("70px");

    verticalLayout.addComponent(ikasanWelcomeLabel1);
    verticalLayout.addComponent(ikasanWelcomeLabel2);

    verticalLayout.addComponent(persistanceStoreTypeCombo);
    persistanceStoreTypeCombo.setHeight("30px");

    Button button = new Button("Create");
    button.setStyleName(ValoTheme.BUTTON_SMALL);
    button.setHeight("30px");

    button.addClickListener(new Button.ClickListener() {
        public void buttonClick(ClickEvent event) {
            String persistenceProvider = (String) PersistanceSetupPanel.this.persistanceStoreTypeCombo
                    .getValue();

            if (persistenceProvider == null) {
                Notification.show("Please select a database type!");
                return;
            }

            PersistenceService persistanceService = persistenceServiceFactory
                    .getPersistenceService(persistenceProvider);

            try {
                persistanceService.createPersistence();
                persistanceService.createAdminAccount();
            } catch (RuntimeException e) {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
                e.printStackTrace(pw);

                Notification.show("Error trying to create Ikasan database!", sw.toString(),
                        Notification.Type.ERROR_MESSAGE);
            }

            Notification.show("Database successfully created!");
        }
    });

    verticalLayout.addComponent(button);
    this.setContent(verticalLayout);
}

From source file:org.ikasan.dashboard.ui.framework.panel.PersistanceSetupPanel.java

License:BSD License

protected void createAlreadyCreatedView() {
    VerticalLayout verticalLayout = new VerticalLayout();
    verticalLayout.setWidth("100%");
    verticalLayout.setHeight("100%");
    verticalLayout.setMargin(true);/*from  www.ja v a2 s  . c o  m*/

    Label ikasanWelcomeLabel1 = new Label("Welcome to Ikasan!");
    ikasanWelcomeLabel1.setStyleName("xlarge");
    ikasanWelcomeLabel1.setWidth("100%");
    ikasanWelcomeLabel1.setHeight("30px");

    Label ikasanWelcomeLabel2 = new Label(
            "It appears as thoug the Ikasan database has already been created. If you believe that this is not the case there may be an issue. "
                    + "Please contact your local database administrator or Ikasan/Middleware support.");

    ikasanWelcomeLabel2.setStyleName("large");
    ikasanWelcomeLabel2.setWidth("60%");
    ikasanWelcomeLabel2.setHeight("60px");

    verticalLayout.addComponent(ikasanWelcomeLabel1);
    verticalLayout.addComponent(ikasanWelcomeLabel2);

    //        verticalLayout.addComponent(persistanceStoreTypeCombo);

    this.setContent(verticalLayout);
}

From source file:org.ikasan.dashboard.ui.framework.panel.ProfilePanel.java

License:BSD License

@SuppressWarnings("deprecation")
protected void init() {
    this.setWidth("100%");
    this.setHeight("100%");

    VerticalLayout layout = new VerticalLayout();
    layout.setSizeFull();//from  w ww.j  a  v  a  2 s  .  c om

    Panel securityAdministrationPanel = new Panel();
    securityAdministrationPanel.addStyleName(ValoTheme.PANEL_BORDERLESS);
    securityAdministrationPanel.setHeight("100%");
    securityAdministrationPanel.setWidth("100%");

    GridLayout gridLayout = new GridLayout(2, 6);
    gridLayout.setMargin(true);
    gridLayout.setSpacing(true);
    gridLayout.setSizeFull();

    Label mappingConfigurationLabel = new Label("User Profile");
    mappingConfigurationLabel.setStyleName(ValoTheme.LABEL_HUGE);
    gridLayout.addComponent(mappingConfigurationLabel, 0, 0, 1, 0);

    Label usernameLabel = new Label("Username:");

    usernameField.setWidth("65%");

    firstName = new TextField();
    firstName.setWidth("65%");
    firstName.setNullRepresentation("");
    surname = new TextField();
    surname.setWidth("65%");
    surname.setNullRepresentation("");
    department.setWidth("65%");
    department.setNullRepresentation("");
    email.setWidth("65%");
    email.setNullRepresentation("");

    roleTable.addContainerProperty("Role", String.class, null);
    roleTable.addStyleName("ikasan");
    roleTable.addStyleName(ValoTheme.TABLE_SMALL);
    roleTable.setCellStyleGenerator(new IkasanSmallCellStyleGenerator());
    roleTable.setHeight("520px");
    roleTable.setWidth("250px");

    GridLayout formLayout = new GridLayout(2, 5);
    formLayout.setSpacing(true);
    formLayout.setWidth("100%");

    formLayout.setColumnExpandRatio(0, .1f);
    formLayout.setColumnExpandRatio(1, .8f);

    usernameLabel.setSizeUndefined();
    formLayout.addComponent(usernameLabel, 0, 0);
    formLayout.setComponentAlignment(usernameLabel, Alignment.MIDDLE_RIGHT);
    formLayout.addComponent(usernameField, 1, 0);

    Label firstNameLabel = new Label("First name:");
    firstNameLabel.setSizeUndefined();
    formLayout.addComponent(firstNameLabel, 0, 1);
    formLayout.setComponentAlignment(firstNameLabel, Alignment.MIDDLE_RIGHT);
    formLayout.addComponent(firstName, 1, 1);

    Label surnameLabel = new Label("Surname:");
    surnameLabel.setSizeUndefined();
    formLayout.addComponent(surnameLabel, 0, 2);
    formLayout.setComponentAlignment(surnameLabel, Alignment.MIDDLE_RIGHT);
    formLayout.addComponent(surname, 1, 2);

    Label departmentLabel = new Label("Department:");
    departmentLabel.setSizeUndefined();
    formLayout.addComponent(departmentLabel, 0, 3);
    formLayout.setComponentAlignment(departmentLabel, Alignment.MIDDLE_RIGHT);
    formLayout.addComponent(department, 1, 3);

    Label emailLabel = new Label("Email address:");
    emailLabel.setSizeUndefined();
    formLayout.addComponent(emailLabel, 0, 4);
    formLayout.setComponentAlignment(emailLabel, Alignment.MIDDLE_RIGHT);
    formLayout.addComponent(email, 1, 4);

    gridLayout.addComponent(formLayout, 0, 2, 1, 2);

    Label rolesAndGroupsHintLabel1 = new Label();
    rolesAndGroupsHintLabel1.setCaptionAsHtml(true);
    rolesAndGroupsHintLabel1.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml()
            + " The Roles table below displays the Ikasan roles that the user has.");
    rolesAndGroupsHintLabel1.addStyleName(ValoTheme.LABEL_TINY);
    rolesAndGroupsHintLabel1.addStyleName(ValoTheme.LABEL_LIGHT);
    rolesAndGroupsHintLabel1.setWidth(300, Unit.PIXELS);
    gridLayout.addComponent(rolesAndGroupsHintLabel1, 0, 3, 1, 3);

    Label rolesAndGroupsHintLabel2 = new Label();
    rolesAndGroupsHintLabel2.setCaptionAsHtml(true);
    rolesAndGroupsHintLabel2.setCaption(VaadinIcons.QUESTION_CIRCLE_O.getHtml()
            + " The Groups table below displays all the LDAP groups that the user is a member of.");

    rolesAndGroupsHintLabel2.addStyleName(ValoTheme.LABEL_TINY);
    rolesAndGroupsHintLabel2.addStyleName(ValoTheme.LABEL_LIGHT);
    rolesAndGroupsHintLabel2.setWidth(300, Unit.PIXELS);
    gridLayout.addComponent(rolesAndGroupsHintLabel2, 0, 4, 1, 4);

    dashboadActivityTable.addContainerProperty("Action", String.class, null);
    dashboadActivityTable.addContainerProperty("Date/Time", String.class, null);
    dashboadActivityTable.addStyleName("ikasan");
    dashboadActivityTable.addStyleName(ValoTheme.TABLE_SMALL);
    dashboadActivityTable.setCellStyleGenerator(new IkasanSmallCellStyleGenerator());
    dashboadActivityTable.setHeight("350px");
    dashboadActivityTable.setWidth("300px");

    this.permissionChangeTable.addContainerProperty("Action", String.class, null);
    this.permissionChangeTable.addContainerProperty("Date/Time", String.class, null);
    this.permissionChangeTable.addStyleName("ikasan");
    this.permissionChangeTable.addStyleName(ValoTheme.TABLE_SMALL);
    this.permissionChangeTable.setCellStyleGenerator(new IkasanSmallCellStyleGenerator());
    this.permissionChangeTable.setHeight("350px");
    this.permissionChangeTable.setWidth("300px");

    gridLayout.addComponent(roleTable, 0, 5);

    this.associatedPrincipalsTable.addContainerProperty("Groups", String.class, null);
    this.associatedPrincipalsTable.addItemClickListener(this.associatedPrincipalItemClickListener);
    this.associatedPrincipalsTable.addStyleName("ikasan");
    this.associatedPrincipalsTable.addStyleName(ValoTheme.TABLE_SMALL);
    this.associatedPrincipalsTable.setCellStyleGenerator(new IkasanSmallCellStyleGenerator());
    associatedPrincipalsTable.setHeight("520px");
    associatedPrincipalsTable.setWidth("400px");

    gridLayout.addComponent(this.associatedPrincipalsTable, 1, 5);

    Panel roleMemberPanel = new Panel();

    roleMemberPanel.addStyleName(ValoTheme.PANEL_BORDERLESS);
    roleMemberPanel.setHeight("100%");
    roleMemberPanel.setWidth("100%");

    GridLayout roleMemberLayout = new GridLayout();
    roleMemberLayout.setSpacing(true);
    roleMemberLayout.setWidth("100%");

    Label dashboardActivityLabel = new Label("Dashboard Activity");
    dashboardActivityLabel.setStyleName(ValoTheme.LABEL_HUGE);

    roleMemberLayout.addComponent(dashboardActivityLabel);
    roleMemberLayout.addComponent(this.dashboadActivityTable);

    Label permissionChangeLabel = new Label("User Security Changes");
    permissionChangeLabel.setStyleName(ValoTheme.LABEL_HUGE);

    roleMemberLayout.addComponent(permissionChangeLabel);
    roleMemberLayout.addComponent(this.permissionChangeTable);

    roleMemberPanel.setContent(roleMemberLayout);

    securityAdministrationPanel.setContent(gridLayout);
    layout.addComponent(securityAdministrationPanel);

    VerticalLayout roleMemberPanelLayout = new VerticalLayout();
    roleMemberPanelLayout.setWidth("100%");
    roleMemberPanelLayout.setHeight("100%");
    roleMemberPanelLayout.setMargin(true);
    roleMemberPanelLayout.addComponent(roleMemberPanel);
    roleMemberPanelLayout.setSizeFull();

    HorizontalSplitPanel hsplit = new HorizontalSplitPanel();
    hsplit.setFirstComponent(layout);
    hsplit.setSecondComponent(roleMemberPanelLayout);

    // Set the position of the splitter as percentage
    hsplit.setSplitPosition(65, Unit.PERCENTAGE);
    hsplit.setLocked(true);

    this.setContent(hsplit);
}

From source file:org.ikasan.dashboard.ui.topology.window.ActionedExclusionEventViewWindow.java

License:BSD License

public void init() {
    this.setModal(true);
    this.setResizable(false);
    this.setHeight("90%");
    this.setWidth("90%");

    VerticalLayout layout = new VerticalLayout();
    layout.setWidth("100%");

    layout.addComponent(createExclusionEventDetailsPanel());

    this.setContent(layout);
}

From source file:org.investovator.ui.nngaming.QuoteUI.java

License:Open Source License

private void setupUI() {

    //Trade Button
    tradeButton = new Button("Place Order");
    tradeButton.addClickListener(tradeButtonClickListener);
    tradeButton.setWidth("100%");

    //Price Layout
    price = new TextField("Price");
    price.addValueChangeListener(priceValueChangedListener);
    price.setImmediate(true);//from  ww  w  .j a  v a  2s . com
    price.setWidth("100%");

    amount = new Label();
    amount.setCaption("Amount");
    amount.addStyleName("outlined");
    amount.setWidth("100%");

    stocks = new TextField("Stocks");
    stocks.addValueChangeListener(stocksChangedListener);
    stocks.setImmediate(true);
    stocks.setWidth("100%");

    //Stock Select
    stockSelect = new ComboBox();
    stockSelect.setCaption("Select stock to trade");
    stockSelect.setNullSelectionAllowed(false);
    stockSelect.setImmediate(true);
    stockSelect.setWidth("100%");
    stockSelect.addValueChangeListener(selectSymbolValueChange);

    VerticalLayout column1 = new VerticalLayout();
    column1.setSpacing(true);
    column1.setWidth("100%");
    column1.addComponent(stockSelect);
    column1.setComponentAlignment(stockSelect, Alignment.MIDDLE_LEFT);
    column1.addComponent(price);
    column1.setComponentAlignment(price, Alignment.MIDDLE_LEFT);
    column1.addComponent(amount);
    column1.setComponentAlignment(amount, Alignment.MIDDLE_LEFT);

    //Side Select
    sideSelect = new ComboBox("Select Order Type");
    sideSelect.addItem("Buy Order");
    sideSelect.addItem("Sell Order");
    sideSelect.select("Buy Order");
    isBuy = true;
    sideSelect.setNullSelectionAllowed(false);
    sideSelect.addValueChangeListener(sideSelectValueChangeListener);
    sideSelect.setImmediate(true);
    sideSelect.setWidth("100%");

    VerticalLayout column2 = new VerticalLayout();

    column2.setSpacing(true);
    column2.setWidth("100%");
    column2.addComponent(sideSelect);
    column2.setComponentAlignment(sideSelect, Alignment.MIDDLE_RIGHT);
    column2.addComponent(stocks);
    column2.setComponentAlignment(stocks, Alignment.MIDDLE_RIGHT);
    column2.addComponent(tradeButton);
    column2.setComponentAlignment(tradeButton, Alignment.BOTTOM_RIGHT);

    HorizontalLayout layout = new HorizontalLayout();
    layout.addComponent(column1);
    layout.addComponent(column2);
    layout.setSpacing(true);

    this.addComponent(layout);
    this.setComponentAlignment(layout, Alignment.MIDDLE_RIGHT);
    this.setSpacing(true);
    this.setMargin(new MarginInfo(false, false, false, true));
    this.setImmediate(true);
    this.setWidth("100%");

}

From source file:org.lunifera.christmastree.control.DesktopControlComponent.java

License:Creative Commons License

protected AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);// w ww.  j  av a2 s .c o m
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");

    // top-level component properties
    setWidth("100.0%");
    setHeight("100.0%");

    // title area
    ThemeResource resource = new ThemeResource("images/Title.png");
    Image title = new Image(" ", resource);
    title.setHeight("108px");
    title.setWidth("827px");
    mainLayout.addComponent(title, "top:22.0px;left:120.0px");

    VerticalLayout vl = new VerticalLayout();
    vl.setHeight("500px");
    vl.setWidth("400px");
    vl.setSpacing(true);
    mainLayout.addComponent(vl, "top:140.0px;left:100.0px;");

    contentLayout = buildContent();
    vl.addComponent(contentLayout);
    vl.setExpandRatio(contentLayout, 1.0f);

    // licenses
    PopupView licenseLink = new PopupView("Attributions",
            new Label("<div><i>Monitor/tablet/smartphone</i> and <i>tree</i> icons </br> made by "
                    + "<a href=\"http://www.freepik.com\" title=\"Freepik\">Freepik</a> "
                    + "from <a href=\"http://www.flaticon.com\" title=\"Flaticon\">www.flaticon.com</a> </br>"
                    + "is licensed under <a href=\"http://creativecommons.org/licenses/by/3.0/\" "
                    + "title=\"Creative Commons BY 3.0\">CC BY 3.0</a></div>", ContentMode.HTML));
    licenseLink.setPrimaryStyleName("attributions");
    vl.addComponent(licenseLink);

    Label image = new Label();
    image.setHeight("400px");
    image.setWidth("100%");
    // image.setValue("<div style=\"overflow:hidden; width: 400px;
    // margin-left: -60px;\">"
    // + "<img src=\"http://77.119.240.22:8081\"/>" + "</div>");
    image.setValue("<div style=\"overflow:hidden; width: 370px; margin-left: -60px;\">"
            + "<img src=\"http://192.168.0.108:8081\"/>" + "</div>");
    image.setContentMode(ContentMode.HTML);
    mainLayout.addComponent(image, "top:140.0px;left:600.0px;");

    return mainLayout;
}

From source file:org.lunifera.christmastree.control.MobileControlComponent.java

License:Creative Commons License

protected AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);/*from w w w .j a  v  a2 s  . c om*/
    mainLayout.setWidth("1280px");
    mainLayout.setHeight("720px");

    // top-level component properties
    setWidth("100.0%");
    setHeight("100.0%");

    // title area
    ThemeResource resource = new ThemeResource("images/Title.png");
    Image title = new Image(" ", resource);
    title.setHeight("54px");
    title.setWidth("413px");
    mainLayout.addComponent(title, "top:11.0px;left:60.0px");

    Label image = new Label();
    image.setHeight("340px");
    image.setWidth("600px");
    image.setValue("<div style=\"overflow:hidden; width: 320px; height: 600px; margin-left: -60px;\">"
            + "<img src=\"http://192.168.0.108:8081\"/>" + "</div>");
    image.setContentMode(ContentMode.HTML);
    mainLayout.addComponent(image, "top:70.0px;left:125px;");

    // Image image = new Image();
    // image.setHeight("240px");
    // image.setWidth("320px");
    // image.setSource(new
    // ExternalResource("http://192.168.0.108:8081/stream",
    // "video/x-motion-jpeg"));
    // mainLayout.addComponent(image, "top:70.0px;left:50.0px;");

    VerticalLayout vl = new VerticalLayout();
    //      vl.setHeight("250px");
    vl.setWidth("200px");
    vl.setSpacing(true);

    mainLayout.addComponent(vl, "top:180.0px;left:535.0px;");
    contentLayout = buildContent();
    vl.addComponent(contentLayout);
    vl.setExpandRatio(contentLayout, 1.0f);

    // licenses
    PopupView licenseLink = new PopupView("Attributions",
            new Label("<div><i>Monitor/tablet/smartphone</i> and <i>tree</i> icons </br> made by "
                    + "<a href=\"http://www.freepik.com\" title=\"Freepik\">Freepik</a> "
                    + "from <a href=\"http://www.flaticon.com\" title=\"Flaticon\">www.flaticon.com</a> </br>"
                    + "is licensed under <a href=\"http://creativecommons.org/licenses/by/3.0/\" "
                    + "title=\"Creative Commons BY 3.0\">CC BY 3.0</a></div>", ContentMode.HTML));
    licenseLink.setPrimaryStyleName("attributions");
    vl.addComponent(licenseLink);

    return mainLayout;
}

From source file:org.lunifera.examples.ecview.model.ui.PersonUI.java

License:Apache License

@SuppressWarnings("restriction")
@Override//from  ww  w  .  j a v  a  2 s .  c o m
protected void init(VaadinRequest request) {

    VerticalLayout spanningLayout = new VerticalLayout();
    spanningLayout.setSizeFull();
    setContent(spanningLayout);

    dtoService = DtoServiceAccess.getService(PersonDto.class);
    VerticalLayout layout = new VerticalLayout();
    spanningLayout.addComponent(layout);
    layout.setSizeUndefined();
    layout.setWidth("100%");

    HorizontalLayout buttonBar = new HorizontalLayout();
    layout.addComponent(buttonBar);
    buttonBar.setMargin(true);
    buttonBar.setSpacing(true);
    NativeButton setupDB = new NativeButton("Setup DB");
    setupDB.addClickListener(new Button.ClickListener() {
        @Override
        public void buttonClick(ClickEvent event) {
            Activator.INSTANCE.setupDB();
        }
    });
    buttonBar.addComponent(setupDB);

    YView yView = findViewModel("org.lunifera.examples.ecview.model.jpa.services.PersonView");
    if (yView == null) {
        Notification.show("PersonView could not be found!", Type.ERROR_MESSAGE);
        return;
    }

    // render the Vaadin UI
    VaadinRenderer renderer = new VaadinRenderer();
    try {
        viewContext = renderer.render(layout, yView, null);
    } catch (ContextException e) {
        e.printStackTrace();
    }

    II18nService service = viewContext.getService(II18nService.ID);
    for (YExposedAction action : yView.getExposedActions()) {
        Button temp = new Button();
        buttonBar.addComponent(temp);
        temp.setCaption(service.getValue(action.getLabelI18nKey(), getLocale()));
        temp.setIcon(new ThemeResource(action.getIcon()));
        if (action.getId().equals("org.lunifera.actions.load")) {
            reloadAction = temp;
            reloadAction.setEnabled(false);
            temp.addClickListener(new LoadHandler());
        } else if (action.getId().equals("org.lunifera.actions.save")) {
            saveAction = temp;
            saveAction.setEnabled(false);
            temp.addClickListener(new SaveHandler());
        } else if (action.getId().equals("org.lunifera.actions.delete")) {
            deleteAction = temp;
            deleteAction.setEnabled(false);
            temp.addClickListener(new DeleteHandler());
        } else if (action.getId().equals("org.lunifera.actions.find")) {
            searchAction = temp;
            temp.addClickListener(new SearchHandler());
        }
    }
}

From source file:org.opencms.ui.dialogs.history.CmsHistoryDialog.java

License:Open Source License

/**
 * Opens the 'compare' view for the two selected versions of the resource.<p>
 *
 * @throws CmsException if something goes wrong
 */// w  w w . j  a  va2s  .c om
public void tryCompare() throws CmsException {

    CmsObject cms = A_CmsUI.getCmsObject();
    CheckBox check1 = m_group1.getSelected();
    CheckBox check2 = m_group2.getSelected();
    if (!canCompare(check1, check2)) {
        Notification.show(
                CmsVaadinUtils.getMessageText(Messages.GUI_HISTORY_DIALOG_SELECT_TWO_DIFFERENT_VERSIONS_0));
    } else {
        CmsHistoryResourceBean bean1 = (CmsHistoryResourceBean) (check1.getData());
        CmsHistoryResourceBean bean2 = (CmsHistoryResourceBean) (check2.getData());
        VerticalLayout diffContainer = new VerticalLayout();
        diffContainer.setSpacing(true);
        for (I_CmsDiffProvider diff : m_diffs) {
            Optional<Component> optionalDiff = diff.diff(cms, bean1, bean2);
            if (optionalDiff.isPresent()) {
                diffContainer.addComponent(optionalDiff.get());
            }
        }
        Panel panel = new Panel();
        panel.setSizeFull();
        diffContainer.setWidth("100%");
        diffContainer.setMargin(true);
        panel.addStyleName(ValoTheme.PANEL_BORDERLESS);
        panel.setContent(diffContainer);
        openChildDialog(CmsHistoryDialog.this, panel,
                CmsVaadinUtils.getMessageText(Messages.GUI_HISTORY_DIALOG_COMPARE_0));
    }

}