Example usage for com.vaadin.ui ComponentContainer setWidth

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

Introduction

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

Prototype

public void setWidth(String width);

Source Link

Document

Sets the width of the component using String presentation.

Usage

From source file:com.esofthead.mycollab.vaadin.ui.FormContainer.java

License:Open Source License

public void addSection(Component sectionHeader, ComponentContainer container) {
    sectionHeader.addStyleName("section");
    sectionHeader.setWidth("100%");
    container.setWidth("100%");
    this.addComponent(sectionHeader);
    this.addComponent(container);
}