public void uninstall() {
MenuPopup menuPopup = (MenuPopup)getComponent();
menuPopup.getMenuPopupListeners().remove(this);
menuPopup.getMenuPopupStateListeners().remove(this);
Menu menu = menuPopup.getMenu();
if (menu != null) {
menu.getMenuItemSelectionListeners().remove(menuItemSelectionListener);
}
panorama.setView(null);
menuPopup.setContent(null);