Пример #1
0
 private void logOut() {
   try {
     marketobj.logOut(command.getClient());
   } catch (RemoteException e) {
     contr.remoteExceptionHandler(e);
   }
 }
Пример #2
0
 private void removeWish() {
   try {
     marketobj.removeWish(command.getItemName(), command.getPrice(), command.getClient());
     contr.updateLog(client.getName() + " removed wish for " + command.getItemName());
     getWishes();
   } catch (RemoteException e) {
     contr.remoteExceptionHandler(e);
   }
 }
Пример #3
0
 private void removeSell() {
   try {
     marketobj.removeSell(
         command.getItemName(), command.getItemDescr(), command.getPrice(), command.getClient());
     contr.updateLog(
         client.getName() + " removed " + command.getItemName() + " that was listed as for sale");
     getForSale();
   } catch (RemoteException e) {
     contr.remoteExceptionHandler(e);
   }
 }
Пример #4
0
 public MarketWorker(MarketPlace marketobj, MarketCommand command, GuiController contr) {
   this.client = command.getClient();
   this.marketobj = marketobj;
   this.command = command;
   this.contr = contr;
 }