Example usage for com.vaadin.ui TabSheet hideTabs

List of usage examples for com.vaadin.ui TabSheet hideTabs

Introduction

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

Prototype

@Deprecated
public void hideTabs(boolean tabsHidden) 

Source Link

Document

Hides or shows the tab selection parts ("tabs").

Usage

From source file:de.catma.ui.tabbedview.TabbedView.java

License:Open Source License

public void onTabClose(TabSheet tabsheet, Component tabContent) {
    tabsheet.removeComponent(tabContent);
    ((ClosableTab) tabContent).close();//from  ww  w .  ja  va  2 s  .  c o  m

    if (tabsheet.getComponentCount() == 0) {
        //setVisible(false) doesn't work here because of out of sync errors
        tabSheet.hideTabs(true);
        tabSheet.setHeight("0px");
        addComponent(noOpenTabsLabel, 0);
        noOpenTabsLabel.setVisible(true);
        setMargin(true);
    }

}