Package gwtappcontainer.client.apps

Examples of gwtappcontainer.client.apps.IPresenter


  public void loadView(ViewProp viewDesc) {
       
    setTitle(Constants.containerTitle + " - loading " + viewDesc.app + "...");
   
    //TODO - put a gwt code split point here
    IPresenter presenter = new PresenterFactory().
        getPresenter(viewDesc.app, viewDesc.view);
   
    presenter.render(containerView.contentFlowPanel, viewDesc.params);     
       
    setTitle(Constants.containerTitle + " - " + viewDesc.app);
   
    statsSvc.recordView(viewDesc, new AsyncCallback<Void>() {     
      @Override
View Full Code Here


public class PresenterFactory {
 
  public IPresenter getPresenter(String appTitle, String viewTitle) {
   
    IPresenter view = new UndefinedView(appTitle, viewTitle);
   
    if (appTitle.equalsIgnoreCase("home") && viewTitle.equalsIgnoreCase("main"))     
      view = new gwtappcontainer.client.apps.home.main.Presenter();     
    else if (appTitle.equalsIgnoreCase("videos") && viewTitle.equalsIgnoreCase("view"))
      view = new gwtappcontainer.client.apps.videos.view.Presenter();   
View Full Code Here

TOP

Related Classes of gwtappcontainer.client.apps.IPresenter

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.