Package com.taobao.zeus.web.platform.client.app

Examples of com.taobao.zeus.web.platform.client.app.Application


  }

  @Override
  public void handle(PlatformPlaceChangeEvent event) {
    ShortcutCellResources s=com.google.gwt.core.shared.GWT.create(ShortcutCellResources.class);
    Application app=null;
    KV kv=event.getNewPlace().getCurrent();
    if(App.Home.getKv().value.equals(kv.value)){
      app=getApp(HomeApp.class);
    }else if(App.Document.getKv().value.equals(kv.value)){
      app=getApp(DocumentApp.class);
    }else if(App.Schedule.getKv().value.equals(kv.value)){
      app=getApp(ScheduleApp.class);
    }else if(App.Report.getKv().value.equals(kv.value)){
      app=getApp(ReportApp.class);
    }
    if(app!=null){
      if(apps.get(app)==null){
        SimpleContainer container=new SimpleContainer();
        screen.add(container);
        apps.put(app,container);
        app.getPresenter().go(container);
      }
      for(Application a:apps.keySet()){
        a.getShortcut().getElement().removeClassName(s.style().select());
      }
      app.getShortcut().getElement().addClassName(s.style().select());
      screen.setActiveWidget(apps.get(app));
    }
     
  }
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.client.app.Application

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.