List of usage examples for com.vaadin.ui TabSheet.Tab setCaption
@Override public void setCaption(String caption)
From source file:com.haulmont.cuba.web.gui.WebWindow.java
License:Apache License
protected void setTabCaptionAndDescription(TabSheet.Tab tabWindow) { String formattedCaption = formatTabCaption(caption, description); String formattedDescription = formatTabDescription(caption, description); tabWindow.setCaption(formattedCaption); if (!Objects.equals(formattedCaption, formattedDescription)) { tabWindow.setDescription(formatTabDescription(caption, description)); } else {//from w w w . ja v a 2s. c om tabWindow.setDescription(null); } }