public void fillComponentDetilItem() { // 1. HAPUS CONTAINER DETIL::TABLE model.getBeanItemContainerDetil().removeAllItems(); // 2. AMBIL DETIL DENGAN MENGGUNAKAN KODE HEADER List<FtPriced> list = new ArrayList<FtPriced>(); list = model.getFtPricedJpaService().findAllDetilByRefno(model.getItemHeader().getRefno()); // 3. PERBAIKI CONTENT TRANSIENT List<FtPriced> newList = new ArrayList<FtPriced>(); newList = helper.updateAndCalculateItemDetilFromList(list); // 4. MASUKKAN KE DALAM LIST model.getBeanItemContainerDetil().addAll(newList); tableDetil.refreshRowCache(); }
public void windowClose(CloseEvent e) { // Actualizo el listado de DocumentObjects if (((DocumentObjectSubWindow) e.getSource()).isDirty()) { DocumentObject d = ((DocumentObjectSubWindow) e.getSource()).getCurrentBeanItem().getBean(); if (!isNewItem) { // Actualizacion beanItem.getBean().getDocumentObjectList().remove(currentFile); fileTable.removeItem(currentFile); } if (!d.getExtension().equals("")) fileTable.addItem(new Object[] {d.getName() + "." + d.getExtension(), d.getSize()}, d); else fileTable.addItem(new Object[] {d.getName(), d.getSize()}, d); beanItem.getBean().getDocumentObjectList().add(d); fileTable.requestRepaintAll(); fileTable.refreshRowCache(); dirty = true; } }
public void addAllGameRounds(List<GameRound> gameRoundList) { gameResultTable.addItems(gameRoundList); gameResultTable.refreshRowCache(); }