Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 public void previousItem() {
   currentCheck.previousItem();
   this.update();
 }
Esempio n. 3
0
 public void nextItem() {
   currentCheck.nextItem();
   this.update();
 }
Esempio n. 4
0
 public void clearCheck() {
   currentCheck.resetCheck();
   checkPanel.setResult(checkPanel.getHeader());
   this.update();
 }
Esempio n. 5
0
 public void removeItemFromCheck() {
   currentCheck.removeCheckItem();
   this.update();
 }
Esempio n. 6
0
 public void addItemToCheck(MenuItem item) {
   currentCheck.addCheckItem(item, 1);
   this.update();
 }