@Override
public void install(Component component) {
super.install(component);
MenuPopup menuPopup = (MenuPopup)component;
menuPopup.getMenuPopupListeners().add(this);
if (menuPopup.isOpen()) {
Component.getComponentClassListeners().add(this);
}
Menu menu = menuPopup.getMenu();
if (menu != null) {
menu.getMenuItemSelectionListeners().add(menuItemPressListener);
}
panorama.setView(menu);
menuPopup.setContent(border);
// Attach the drop-shadow decorator
dropShadowDecorator = new DropShadowDecorator(3, 3, 3);
menuPopup.getDecorators().add(dropShadowDecorator);
}