亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? brokercontrollerimpl.java

?? java寫的股票交易系統
?? JAVA
字號:
package trader;
public class BrokerControllerImpl implements BrokerController {
  private BrokerModel brokerModel;
  private BrokerView brokerView;

  /** Creates new BrokerControllerImpl */
  public BrokerControllerImpl(BrokerModel model, BrokerView view) {
    try {
      //** 1 Assign model to brokerModel
      brokerModel = model;
      //** 2 Assign view to brokerView
      brokerView = view;
      //** 3 Register this object as a user gesture listener with
      //**   the brokerView object
      //**   Hint - invoke addUserGestureListener
      brokerView.addUserGestureListener(this);    
    } catch(Exception e) {
      reportException(e);
    }
  }

  private void reportException(Object o) {
    // The responsibility of this method is to report exceptions
    // It class the brokerView's showDisplay method
    try {
      brokerView.showDisplay(o);
    } catch(Exception e) {
      System.out.println("BrokerControllerImpl reportException " + e);
    }
  }
    
//user gesture call back methods
  /* ---------------------------------------------------------------
   * get customer user gesture handle method called by the broker
   * view in response to the get customer button click on the GUI or
   * equivalent user interface.
   * action - set customer display on the gui through the 
   * showDisplay method of the broker view
   */
   
        //modified by ourteam 051228
        //begin
       
 /* public void handleGetCustomerGesture(String id) {
   System.out.println("handleGetCustomerGesture " + id);
    Customer cust = null;
    try {
      //** 1 Set cust to the object returned as a result of
      //**   invoking the getCustomer method on brokerModel
      cust = brokerModel.getCustomer(id);
      //** 2 Invoke showDisplay method of brokerView with cust 
      //**   as parameter
      brokerView.showDisplay(cust);
    } catch(Exception e) {
      reportException(e);
      cust = new Customer(id);
      try {
        brokerView.showDisplay(cust);
      } catch (Exception ex) {
        reportException(ex);
      }
    }
  }*/
 
  public void handleGetCustomerGesture(String id, String name,String addr) {
    System.out.println("handleGetCustomerGesture " + id + ", " + name+","+addr);
    Customer cust = null;
    try {
      //** 1 Set cust to the object returned as a result of
      //**   invoking the getCustomer method on brokerModel
      cust = brokerModel.getCustomer(id, name,addr);
      //** 2 Invoke showDisplay method of brokerView with cust 
      //**   as parameter
      brokerView.showDisplay(cust);
    } catch(Exception e) {
      reportException(e);
      cust = new Customer(id);
      try {
        brokerView.showDisplay(cust);
      } catch (Exception ex) {
        reportException(ex);
      }
    }
  }
 
  
  /* ---------------------------------------------------------------
   * add new customer user gesture handle method called by the
   * broker view in response to the add customer button click on the
   * GUI or equivalent user interface.
   * action - add the (new) customer customer to the model
   */
  public void handleAddCustomerGesture(Customer c) {
    System.out.println("handleAddCustomerGesture " + c);
    try {
      //** 1 Invoke addCustomer method of brokerModel with c
      //**   as parameter
      brokerModel.addCustomer(c);
    } catch(Exception e) {
      reportException(e);
    }
  }
  
  /* ---------------------------------------------------------------
   * delete customer user gesture  handle method called by
   * the broker view in response to the delete customer 
   * button click on the GUI or equivalent user interface
   * action  - delete the customer from the model
   */
  public void handleDeleteCustomerGesture(Customer c){
    System.out.println("handleDeleteCustomerGesture " + c);
    try {
      //** 1 Invoke deleteCustomer method of brokerModel with c
      //**   as parameter
      brokerModel.deleteCustomer(c);
    } catch(Exception e) {
      reportException(e);
    }
  }
  
  /* ---------------------------------------------------------------
   * update customer user gesture callback method called by
   * the broker view in response to the update customer 
   * button click on the GUI or equivalent user interface
   * action  - update the customer in the model
   */
  public void handleUpdateCustomerGesture(Customer c){
    System.out.println("handleUpdateCustomerGesture " + c);
    try {
      //** 1 Invoke updateCustomer method of brokerModel with c
      //**   as parameter
      brokerModel.updateCustomer(c);
    } catch(Exception e) {
      reportException(e);
    }
  }
  
  /* ---------------------------------------------------------------
    * get all customers user gesture callback method called
    * the broker view in response to the get all customers 
    * button click on the GUI or equivalent user interface
    * action - set all customers display on the gui through the
    * showDisplay method of the broker view
    */
  public void handleGetAllCustomersGesture(){
    System.out.println("handleGetAllCustomersGesture ");
    Customer custs[];
    try {
      //** 1 Invoke getAllCustomers method of brokerModel
      //**   Assign the return value from this method to custs
      custs = brokerModel.getAllCustomers();
      //** 2 Invoke showDisplay method of brokerView with custs
      //** as parameter
      brokerView.showDisplay(custs);      
    } catch(Exception e) {
      reportException(e);
    }
  } 
  
  /* ---------------------------------------------------------------
    * get stocks user gesture callback method called
    * the broker view in response to the get all customers 
    * button click on the GUI or equivalent user interface
    * action - set all customers display on the gui through the
    * showDisplay method of the broker view
    */
  public void handleGetStockGesture(String symbol,String price){
    System.out.println("handleGetStockGesture "+symbol+" , "+price);
    Stock stock=null;
    try {
      stock = brokerModel.getStock(symbol, price);
      //** 2 Invoke showDisplay method of brokerView with stocks
      //** as parameter
      brokerView.showDisplay(stock);      
    } catch(Exception e) {
      reportException(e);
      stock = new Stock(symbol);
      try {
        brokerView.showDisplay(stock);
      } catch (Exception ex) {
        reportException(ex);
    }
  }

}

//modified  by  ourteam 051228
//begin
public void handleGetAllStocksGesture(){
    System.out.println("handleGetAllStocksGesture ");
    Stock stocks[];
    try {
      //** 1 Invoke  method of brokerModel
      //**   Assign if return value from this method to custs
      stocks = brokerModel.getAllStocks();
      //** 2 Invoke showDisplay method of brokerView with custs
      //** as parameter
      brokerView.showDisplay(stocks);      
    } catch(Exception e) {
      reportException(e);
    }
  } 
  
  //modified  by  ourteam 051228
  //begin
  public void handleGetPortfolioGesture(String id,String name,Share[] shares){
	System.out.println("handleGetPortfolioGesture " + id + ", " + name);
    Portfolio port = null;
    try {
      //** 1 Set cust to the object returned as a result of
      //**   invoking the getCustomer method on brokerModel
      port = brokerModel.getPortfolio(id,name,shares);
      //** 2 Invoke showDisplay method of brokerView with cust 
      //**   as parameter
      brokerView.showDisplay(port);
    } catch(Exception e) {
      reportException(e);
      port = new Portfolio(new Customer(id));
      try {
        brokerView.showDisplay(port);
      } catch (Exception ex) {
        reportException(ex);
      }
    }
  }
  
  public void handleAddPortfolioGesture(Portfolio p) {
    System.out.println("handleAddPortfolioGesture " + p);
    try {
      //** 1 Invoke addCustomer method of brokerModel with c
      //**   as parameter
      brokerModel.addPortfolio(p);
    } catch(Exception e) {
      reportException(e);
    }
  }
  
  /* ---------------------------------------------------------------
   * delete customer user gesture  handle method called by
   * the broker view in response to the delete customer 
   * button click on the GUI or equivalent user interface
   * action  - delete the customer from the model
   */
  public void handleDeletePortfolioGesture(Portfolio p){
    System.out.println("handleDeletePortfolioGesture " + p);
    try {
      //** 1 Invoke deleteCustomer method of brokerModel with c
      //**   as parameter
      brokerModel.deletePortfolio(p);
    } catch(Exception e) {
      reportException(e);
    }
  }
//end

  /*public void handleGetStockGesture(String symbol,String price) {
    System.out.println("handleGetCustomerGesture " + symbol + ", " +price);
    Stock stock=null;
    try {
      //** 1 Set cust to the object returned as a result of
      //**   invoking the getCustomer method on brokerModel
     stock = brokerModel.getStock(symbol, price);
      //** 2 Invoke showDisplay method of brokerView with cust 
      //**   as parameter
      brokerView.showDisplay(stock);
    } catch(Exception e) {
      reportException(e);
      stock= new Stock(symbol);
      try {
        brokerView.showDisplay(stock);
      } catch (Exception ex) {
        reportException(ex);
      }
    }
}*/
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区在线不卡| 日韩久久精品一区| 国产福利精品导航| 久久精品国产久精国产| 久久精品国产**网站演员| 日韩精品欧美成人高清一区二区| 亚洲专区一二三| 亚洲第一综合色| 日韩中文字幕亚洲一区二区va在线 | 欧美mv和日韩mv的网站| 91精品国产综合久久久蜜臀粉嫩| 欧美伦理电影网| 538prom精品视频线放| 日韩精品一区二区三区三区免费 | 欧美国产综合色视频| 国产欧美日韩一区二区三区在线观看| 久久综合色综合88| 国产精品每日更新在线播放网址 | 欧美日本国产一区| 欧美电视剧在线观看完整版| 精品剧情在线观看| 国产精品嫩草影院av蜜臀| 亚洲精品综合在线| 婷婷久久综合九色综合绿巨人| 日韩福利视频网| 国产大陆亚洲精品国产| 99国产欧美久久久精品| 在线不卡中文字幕播放| 久久视频一区二区| 亚洲欧美日韩国产综合在线| 亚洲一区在线观看网站| 国产一区二区0| 91福利在线导航| 欧美videossexotv100| 国产精品传媒视频| 日本欧美久久久久免费播放网| 国产乱子轮精品视频| 欧美亚洲国产一区二区三区va| 日韩欧美一区二区免费| 亚洲欧美自拍偷拍| 美腿丝袜一区二区三区| 色视频一区二区| 欧美zozozo| 亚洲激情图片qvod| 国产**成人网毛片九色| 这里只有精品免费| 亚洲免费三区一区二区| 国产一区在线观看麻豆| 51久久夜色精品国产麻豆| 国产精品女主播av| 国产老妇另类xxxxx| 欧美日韩一二三| 中文字幕综合网| 粉嫩高潮美女一区二区三区| 日韩三级视频中文字幕| 亚洲成人av免费| 色综合久久88色综合天天| 国产亚洲一区二区三区四区| 视频一区视频二区中文| 欧美视频一区二区在线观看| 亚洲欧美在线观看| 成人av网站在线| 日本一区二区不卡视频| 韩国欧美一区二区| 欧美mv日韩mv国产| 伦理电影国产精品| 欧美一级夜夜爽| 奇米影视7777精品一区二区| 这里只有精品免费| 欧美a一区二区| 91精品中文字幕一区二区三区| 一区二区三区在线观看网站| 91在线观看免费视频| 国产精品国产三级国产a| 国产传媒日韩欧美成人| 国产婷婷色一区二区三区| 国产乱码精品一区二区三区忘忧草| 欧美大片一区二区| 韩国理伦片一区二区三区在线播放| 欧美va亚洲va国产综合| 国产露脸91国语对白| 国产网站一区二区| 成人av第一页| 亚洲综合色自拍一区| 欧美日本不卡视频| 久久精品国产亚洲高清剧情介绍| 欧美精品一区二| 成人深夜在线观看| 1区2区3区国产精品| 欧美性猛交xxxx乱大交退制版| 亚洲电影在线播放| 日韩你懂的在线观看| 国产精品一区二区久久精品爱涩| 国产精品区一区二区三区| 91亚洲男人天堂| 亚洲二区视频在线| 欧美tickle裸体挠脚心vk| 成人免费视频网站在线观看| 一区二区三国产精华液| 日韩视频一区在线观看| aaa欧美色吧激情视频| 亚洲第四色夜色| 久久久久久一二三区| 色综合 综合色| 久久国产尿小便嘘嘘尿| 日本一区二区免费在线| 一本一本大道香蕉久在线精品| 日本午夜一本久久久综合| 国产精品水嫩水嫩| 在线播放一区二区三区| 成人午夜激情视频| 蜜桃av一区二区三区| 亚洲欧美日韩电影| 久久久www成人免费毛片麻豆| 色噜噜狠狠一区二区三区果冻| 寂寞少妇一区二区三区| 一区二区三区日韩精品视频| 久久久一区二区三区捆绑**| 欧美日本免费一区二区三区| 91在线看国产| 国产精品123区| 日韩精品成人一区二区三区| 亚洲欧洲av色图| 国产亚洲欧美一区在线观看| 欧美一级淫片007| 91高清在线观看| 91欧美激情一区二区三区成人| 国产综合色视频| 蜜臀av性久久久久蜜臀aⅴ| 国产精品福利一区| 欧美一区二区日韩一区二区| 91成人在线精品| 91麻豆自制传媒国产之光| 国产福利一区二区三区视频| 久久机这里只有精品| 日韩国产欧美在线观看| 一区二区三区免费观看| 亚洲欧美视频在线观看视频| 国产精品久久久久久一区二区三区| 精品国产a毛片| 精品久久久久久无| 精品欧美乱码久久久久久1区2区 | 久久亚洲综合av| 日韩精品一区二区三区老鸭窝 | 国产精品女人毛片| 欧美精品一区在线观看| 5月丁香婷婷综合| 日韩亚洲电影在线| 日韩免费成人网| 精品福利一区二区三区免费视频| 日韩小视频在线观看专区| 日韩小视频在线观看专区| 欧美一级专区免费大片| 欧美xxxxx牲另类人与| 亚洲精品一区二区三区99| 久久久亚洲国产美女国产盗摄 | 欧美蜜桃一区二区三区| 欧美日韩免费电影| 欧美理论电影在线| 日韩欧美你懂的| 久久综合色8888| 国产精品人妖ts系列视频| 中文字幕中文乱码欧美一区二区| 中文字幕一区二区不卡| 亚洲中国最大av网站| 日韩高清国产一区在线| 精品在线免费视频| 成人免费毛片嘿嘿连载视频| 91网站最新地址| 欧美日韩国产123区| 亚洲精品一区二区三区福利| 国产精品久久久久婷婷| 亚洲夂夂婷婷色拍ww47| 日韩1区2区日韩1区2区| 国产不卡视频在线播放| 一本大道久久精品懂色aⅴ| 91精品婷婷国产综合久久性色| 久久影院午夜片一区| 18欧美亚洲精品| 麻豆精品一区二区综合av| 粉嫩av亚洲一区二区图片| 在线免费视频一区二区| 日韩三级av在线播放| 中文字幕中文字幕中文字幕亚洲无线 | 91福利国产成人精品照片| 91精品国产品国语在线不卡| 国产情人综合久久777777| 亚洲国产精品久久久男人的天堂| 极品少妇xxxx精品少妇| 欧美在线制服丝袜| 久久久久久久久久久久久夜| 亚洲国产精品久久不卡毛片| 国产精品99久久久| 欧美精品九九99久久| 亚洲国产高清在线| 精品伊人久久久久7777人| 在线亚洲高清视频| 国产精品日韩成人| 激情国产一区二区| 欧美乱熟臀69xxxxxx|