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