Exemplo n.º 1
0
 // invoked in CoinDisplayListener
 public void displayCoin(int idx) {
   StoreController sctrl = mCtrl.getStoreController();
   CashStoreItem item;
   try {
     item = (CashStoreItem) sctrl.getStoreItem(Store.CASH, idx);
     mpanel.getCoinDisplay().displayQty(idx, item.getQuantity());
   } catch (VMCSException e) {
     System.out.println("MaintenanceController.displayCoin:" + e);
   }
 }
Exemplo n.º 2
0
 // invoked in DrinkDisplayListener;
 public void displayDrinks(int idx) {
   StoreController sctrl = mCtrl.getStoreController();
   DrinksStoreItem item;
   try {
     item = (DrinksStoreItem) sctrl.getStoreItem(Store.DRINK, idx);
     DrinksBrand db = (DrinksBrand) item.getContent();
     mpanel.getDrinksDisplay().displayQty(idx, item.getQuantity());
     mpanel.displayPrice(db.getPrice());
   } catch (VMCSException e) {
     System.out.println("MaintenanceController.displayDrink:" + e);
   }
 }