List of usage examples for com.vaadin.ui Button setSizeUndefined
@Override public void setSizeUndefined()
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"); } } } }