private void popMyFavorite(String instruction) { List<Item> selection = grid.getSelection(); if (selection.size() != 1) { Messagebox.hint(messageResource.getMessage("100004")); return; } String name = selection.get(0).getItemProperty("name").getValue().toString(); windowMyFavorite.setCaption(name + "-" + termResource.getTerm("To My Favorite")); // reset combobox List<String> categories = candFavoriteService.findUniqueCategoryByManager(this.currentUser.getUuid()); ComboBox cbCreateIn = (ComboBox) vfMyFavorite.getForm().getField("createIn"); cbCreateIn.removeAllItems(); for (String cbItem : categories) { cbCreateIn.addItem(cbItem); } vfMyFavorite.getForm().clear(); windowMyFavorite.open(); }
private void closeMyFavorite() { windowMyFavorite.close(); }
private void buildWindowMyFavorite() { windowMyFavorite = new WindowMTK(termResource.getTerm("My Favorite")); windowMyFavorite.setWidth("400px"); windowMyFavorite.setHeight("230px"); windowMyFavorite.setContent(buildMyFavorite()); }