Example usage for com.vaadin.ui AbstractComponent setWidthUndefined

List of usage examples for com.vaadin.ui AbstractComponent setWidthUndefined

Introduction

In this page you can find the example usage for com.vaadin.ui AbstractComponent setWidthUndefined.

Prototype

@Override
    public void setWidthUndefined() 

Source Link

Usage

From source file:de.symeda.sormas.ui.dashboard.statistics.DashboardStatisticsSubComponent.java

License:Open Source License

public void addComponentToCountLayout(CssLayout countLayout, AbstractComponent countElement) {
    countElement.setWidthUndefined();
    countElement.addStyleName(CssStyles.HSPACE_RIGHT_3);
    countLayout.addComponent(countElement);
}

From source file:de.symeda.sormas.ui.dashboard.statistics.DashboardStatisticsSubComponent.java

License:Open Source License

public void addComponentToContent(AbstractComponent component, Alignment alignment) {
    if (contentLayout != null) {
        component.setWidthUndefined();
        contentLayout.addComponent(component);
        contentLayout.setComponentAlignment(component, alignment);
    }/*from   w  w  w  .  j a v a 2  s .  c o  m*/
}

From source file:org.balisunrise.vaadin.components.Sizes.java

License:Open Source License

public void applyWidth(AbstractComponent component) {
    switch (this) {
    case UNDEFINED:
        component.setWidthUndefined();
        break;//from   w ww.  ja v  a 2s  .  c o m
    default:
        component.setWidth(this.toSize());
    }
}