public void update() { currentCheck = server.getCurrentCheck(); checkPanel.setServerName(server.getName()); checkPanel.setInvoice(currentCheck.getInvoiceNumber()); checkPanel.setDate(currentCheck.getDate()); checkPanel.setCheckItems(currentCheck.getCheckItems()); checkPanel.setSubtotal(currentCheck.getSubTotal()); checkPanel.setTax(currentCheck.getTax()); checkPanel.setTotal(currentCheck.getTotal()); checkPanel.renderCheck(); }
public void previousItem() { currentCheck.previousItem(); this.update(); }
public void nextItem() { currentCheck.nextItem(); this.update(); }
public void clearCheck() { currentCheck.resetCheck(); checkPanel.setResult(checkPanel.getHeader()); this.update(); }
public void removeItemFromCheck() { currentCheck.removeCheckItem(); this.update(); }
public void addItemToCheck(MenuItem item) { currentCheck.addCheckItem(item, 1); this.update(); }