Package com.piki.client.ui

Examples of com.piki.client.ui.Desktop


  public void onModuleLoad() {
   
        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)
        }
        display.initDesktop();

        // Start ActivityManager for the main widget with our ActivityMapper
        ActivityMapper activityMapper = new PresenterActivityMapper((PlacePresenterFactory) GWT.create(PlacePresenterFactory.class));
        ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
        activityManager.setDisplay(display);
View Full Code Here

TOP

Related Classes of com.piki.client.ui.Desktop

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.