Example usage for com.vaadin.ui Button setSizeUndefined

List of usage examples for com.vaadin.ui Button setSizeUndefined

Introduction

In this page you can find the example usage for com.vaadin.ui Button setSizeUndefined.

Prototype

@Override
    public void setSizeUndefined() 

Source Link

Usage

From source file:ui.helper.LanguageArea.java

public LanguageArea(Integer userId, String language) {
    setStyleName("menu-language");
    Set<String> languages = ServiceLocator.findLifetimeService().getUserLanguages(userId);
    languages.add(ServiceLocator.findLifetimeService().getMotherLanguage(userId));
    for (String lang : languages) {
        if (lang.length() > 0) {
            Button e = new LifetimeButtonLink(lang, LifetimeUtils.getFlag(lang));
            e.setData(lang);//from  w  w  w  .  jav a  2s.  c  o  m
            e.setSizeUndefined();
            e.addClickListener(this);
            addComponent(e);
            if (language.equalsIgnoreCase(lang)) {
                selected = e;
                selected.setStyleName("button-selected");
            }
        }
    }
}