Example usage for com.vaadin.ui TabSheet.Tab setCaption

List of usage examples for com.vaadin.ui TabSheet.Tab setCaption

Introduction

In this page you can find the example usage for com.vaadin.ui TabSheet.Tab setCaption.

Prototype

@Override
    public void setCaption(String caption) 

Source Link

Usage

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);
    }
}