List of usage examples for com.vaadin.ui TabSheet removeComponent
@Override public void removeComponent(Component component)
From source file:org.opennms.features.vaadin.dashboard.config.ui.WallboardConfigView.java
License:Open Source License
/** * Method to invoke when a {@link TabSheet.Tab} is closed. * * @param tabsheet/*from ww w . j av a 2 s . c o m*/ * @param tabContent */ public void onTabClose(final TabSheet tabsheet, final Component tabContent) { tabsheet.removeComponent(tabContent); m_wallboardEditorMap.remove(((WallboardEditor) tabContent).getWallboard()); }
From source file:ru.codeinside.gses.webui.DelegateCloseHandler.java
License:Mozilla Public License
public void onTabClose(TabSheet tabsheet, Component c) { // ??// w w w . j ava2 s . co m if (c instanceof TabSheet.CloseHandler) { ((TabSheet.CloseHandler) c).onTabClose(tabsheet, c); } tabsheet.removeComponent(c); }