List of usage examples for com.vaadin.ui MenuBar removeItem
public void removeItem(MenuBar.MenuItem item)
From source file:org.semanticsoft.vaaclipse.presentation.renderers.MenuRenderer.java
License:Open Source License
@Override public void removeChildGui(MUIElement element, MElementContainer<MUIElement> parent) { MenuItem childItem = (MenuItem) element.getWidget(); if (parent.getWidget() instanceof MenuBar) { MenuBar bar = (MenuBar) parent.getWidget(); bar.removeItem(childItem); } else if (parent.getWidget() instanceof MenuItem) { MenuItem parentItem = (MenuItem) parent.getWidget(); parentItem.removeChild(childItem); }/*from w w w .j a va 2s. com*/ }