Example usage for com.vaadin.ui ComponentContainer setHeight

List of usage examples for com.vaadin.ui ComponentContainer setHeight

Introduction

In this page you can find the example usage for com.vaadin.ui ComponentContainer setHeight.

Prototype

public void setHeight(String height);

Source Link

Document

Sets the height of the component using String presentation.

Usage

From source file:com.esofthead.mycollab.mobile.ui.AbstractPreviewItemComp.java

License:Open Source License

public AbstractPreviewItemComp() {

    previewForm = initPreviewForm();//ww w . j  ava2  s  . c o  m
    previewForm.setStyleName("readview-layout");
    this.setContent(previewForm);

    editBtn = new NavigationBarQuickMenu();
    editBtn.setButtonCaption(null);
    editBtn.setStyleName("edit-btn");
    editBtn.setContent(createButtonControls());
    this.setRightComponent(editBtn);

    initRelatedComponents();

    ComponentContainer toolbarContent = createBottomPanel();
    if (toolbarContent != null) {
        toolbarContent.addStyleName("related-items");
        toolbarContent.setHeight("100%");
        toolbarContent.setWidthUndefined();

        MobileViewToolbar toolbar = new MobileViewToolbar();
        toolbar.setComponent(toolbarContent);
        this.setToolbar(toolbar);
    }
}