Examples of Presenter


Examples of com.google.gwt.ricordo.client.presenter.Presenter

    presenter.go(container);
  }
 
  private void doAnnotAppEvent(){
    History.newItem("annotation",false);
    Presenter presenter = new AnnotationPresenter(rpcService,eventBus, new AnnotationView());
    presenter.go(container);
 
View Full Code Here

Examples of com.google.gwt.ricordo.client.presenter.Presenter

    presenter.go(container);
 
 
  private void doVariableSelect(VariableSearch variableSearch) {
      History.newItem(VARANNOT_PAGE, false);
      Presenter presenter = new AnnotVariablePresenter(rpcService, eventBus, new AnnotVariableView(), variableSearch);
      presenter.go(container);
    }
View Full Code Here

Examples of com.google.gwt.ricordo.client.presenter.Presenter

      History.newItem("ricordoapp");
    }
 
  private void doAnnotCancel(VariableSearch variableSearch) {
      History.newItem("annotation");
      Presenter presenter = new AnnotationPresenter(rpcService,eventBus, new AnnotationView(), variableSearch);
      presenter.go(container);
  }
View Full Code Here

Examples of com.google.gwt.ricordo.client.presenter.Presenter

      Presenter presenter = new AnnotationPresenter(rpcService,eventBus, new AnnotationView(), variableSearch);
      presenter.go(container);
  }
 
  private void doSelectManchesterQuery(String manQuery, String parentPage, VariableSearch variableSearch) {
    Presenter presenter = null;
    if (parentPage.equals(QUERY_PAGE)) {
      History.newItem(QUERY_PAGE);
      presenter = new QueryPresenter(rpcService, eventBus, new QueryView(), manQuery);
    } else if (parentPage.equals(COMPOSITE_PAGE)) {
      History.newItem(COMPOSITE_PAGE);
      presenter = new CompositePresenter(rpcService, eventBus, new CompositeView(), manQuery);
    } else if (parentPage.equals(VARANNOT_PAGE)){
      History.newItem(VARANNOT_PAGE);
      presenter = new AnnotVariablePresenter(rpcService, eventBus, new AnnotVariableView(), manQuery, variableSearch);
    }
    presenter.go(container);
  }
View Full Code Here

Examples of com.google.gwt.ricordo.client.presenter.Presenter

    }
    presenter.go(container);
  }

  private void doCancelManchesterQuery(String parentPage, VariableSearch variableSearch) {
    Presenter presenter = null;
    if(parentPage.equals(QUERY_PAGE)){
      History.newItem(QUERY_PAGE);
      presenter = new QueryPresenter(rpcService,eventBus, new QueryView());
    }
    else if (parentPage.equals(COMPOSITE_PAGE)){
      History.newItem(COMPOSITE_PAGE);
      presenter = new CompositePresenter(rpcService, eventBus, new CompositeView());
    }
    else if (parentPage.equals(VARANNOT_PAGE)){
      History.newItem(VARANNOT_PAGE);
      presenter = new AnnotVariablePresenter(rpcService, eventBus, new AnnotVariableView(), variableSearch);
    }
    presenter.go(container);     
  }
View Full Code Here

Examples of com.google.gwt.ricordo.client.presenter.Presenter

    presenter.go(container);     
  }
 
  private void doConstructManchesterQuery(String parentPage, VariableSearch  variableSearch) {
      History.newItem("manchesterQuery");
      Presenter presenter= null;
      if(parentPage.equals(VARANNOT_PAGE)){
        presenter= new ManchesterSyntaxPresenter(rpcService, eventBus, new ManchesterSyntaxView(TitlePanel.QUERY_TITLE), parentPage,variableSearch);
      }else{     
        presenter= new ManchesterSyntaxPresenter(rpcService,eventBus, new ManchesterSyntaxView(TitlePanel.QUERY_TITLE),parentPage);
      }
      presenter.go(container)
   
  }
View Full Code Here

Examples of com.google.gwt.ricordo.client.presenter.Presenter

  public void onValueChange(ValueChangeEvent<String> event) {
    String token = event.getValue();
   
    if (token != null) {
      Presenter presenter = null;

      if (token.equals("ricordoapp")) {
          presenter = new RicordoMainPresenter(rpcService, eventBus, new RicordoMainView());
      }
     
      else if (token.equals(QUERY_PAGE)) {
        presenter = new QueryPresenter(rpcService, eventBus, new QueryView());
      }
     
      if (presenter != null) {
        presenter.go(container);
      }
    }
  }
View Full Code Here

Examples of com.google.gwt.sample.contacts.client.presenter.Presenter

  }

  private void doEditContact(String id) {

    History.newItem("edit", false);
    Presenter presenter = new EditContactPresenter(rpcService, eventBus, new EditContactView(), id);
    presenter.go(container);
  }
View Full Code Here

Examples of com.google.gwt.sample.contacts.client.presenter.Presenter

  private void doShowAddress(Contact contact) {

    History.newItem("address");

    Presenter presenter = new ContactAddressPresenter(rpcService, eventBus, new ContactAddressView(), contact);
    presenter.go(container);
  }
View Full Code Here

Examples of com.google.gwt.sample.contacts.client.presenter.Presenter

  public void onValueChange(ValueChangeEvent<String> event) {

    String token = event.getValue();

    if (token != null) {
      Presenter presenter = null;

      if (token.equals("list")) {
        presenter = new ContactsPresenter(rpcService, eventBus, new ContactsView());
      } else if (token.equals("add")) {
        presenter = new EditContactPresenter(rpcService, eventBus, new EditContactView());
      } else if (token.equals("edit")) {
        presenter = new EditContactPresenter(rpcService, eventBus, new EditContactView());
      } else if (token.equals("address")) {
        // presenter = new EditContactPresenter(rpcService, eventBus, new EditContactView());
      }

      if (presenter != null) {
        presenter.go(container);
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.