Ejemplo 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();
 }
Ejemplo n.º 2
0
 public void newCheck() {
   server.startNewCheck();
   this.update();
 }
Ejemplo n.º 3
0
 public void nextCheck() {
   server.nextCheck();
   this.update();
 }
Ejemplo n.º 4
0
 public void previousCheck() {
   server.previousCheck();
   this.update();
 }
Ejemplo n.º 5
0
 public CheckController(Server server) {
   checkActionPanel = new CheckActionPanel(this); // checActionPanel creates the checkPanel
   checkPanel = checkActionPanel.getCheckPanel();
   this.server = server;
   currentCheck = server.getCurrentCheck();
 }