Package com.piki.client.mvp

Examples of com.piki.client.mvp.HasEventBus


        EventBus eventBus = new SimpleEventBus();
        final PlaceController placeController = new PlaceController(eventBus);
       
        Desktop display = GWT.create(Desktop.class);
        if (display instanceof HasEventBus) {
          HasEventBus hasEventBus = (HasEventBus) display;
          hasEventBus.setEventBus(eventBus);
        }
        if (display instanceof HasPlaceController) {
          HasPlaceController hasPlaceController = (HasPlaceController) display;
          hasPlaceController.setPlaceController(placeController)
        }
View Full Code Here


   
    if (presenter == null)
      throw new IllegalStateException("missing presenter");
   
    if (presenter instanceof HasEventBus) {
      HasEventBus hasEventBus = (HasEventBus) presenter;
      hasEventBus.setEventBus(eventBus);
    }
   
    presenter.show(new SimpleViewBinder(panel));
   
  }
View Full Code Here

TOP

Related Classes of com.piki.client.mvp.HasEventBus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.