@Subscribe public void saveOrder(ShowMadeOrderEvent showMadeOrderEvent) { int i = 1; List<MenuItem> menuItems = new ArrayList<MenuItem>(); List<MenuItem> menuItems1 = new ArrayList<MenuItem>(); for (ShowDayMenusPanel menusPanel : currentWeekMenusPanels) { if (menusPanel.isSelected()) {} } }
private Panel addPanelMenu(Menu menu) { panel = new Panel(); initComponents(); for (int i = 1; i <= NUMBER_OF_SERVICE_DAYS; i++) { weekdayLabel = new Label(Weekday.getWeekday(i).toString()); gridLayout.addComponent(locateLayoutWeek(weekdayLabel)); for (MenuItem menuItem : menu.getItems().get(Weekday.getWeekday(i))) { ShowDayMenusPanel showDayMenusPanel = new ShowDayMenusPanel(menuItem.getDescription(), menuItem.getCost()); showDayMenusPanel.setId(menuItem.getId()); showDayMenusPanel.setWeekday(menuItem.getWeekday()); currentWeekMenusPanels.add(showDayMenusPanel); gridLayout.addComponent(showDayMenusPanel); panel.addComponent(gridLayout); } } return panel; }