List of usage examples for com.vaadin.ui ComponentContainer getCaption
public String getCaption();
From source file:nz.co.senanque.vaadinsupport.I18n.I18nCaptionHelper.java
License:Apache License
private static void switchCaption(ComponentContainer componentContainer, MessageSourceAccessor messageSourceAccessor) { String newCaption = getTranslatedCaption(componentContainer.getCaption(), messageSourceAccessor); if (newCaption != null) { componentContainer.setCaption(newCaption); }/* ww w . j a va2 s . c o m*/ Iterator<Component> it = componentContainer.getComponentIterator(); while (it.hasNext()) { Component subcomponent = it.next(); switchCaptions(subcomponent, messageSourceAccessor); } }