Package honeycrm.client.mvp.events

Examples of honeycrm.client.mvp.events.CreateEvent


    final long id = view.getId();

    final HashMap<String, Object> prefilledFields = new HashMap<String, Object>();
    prefilledFields.put(field, id);
   
    eventBus.fireEvent(new CreateEvent(view.getOriginatingModule(), prefilledFields));
  }
View Full Code Here


      }
    });
  }

  public void add() {
    eventBus.fireEvent(new CreateEvent(module));
 
View Full Code Here

  public void go(HasWidgets container) {
    container.clear();
  }

  public void onCreate(final String module) {
    eventBus.fireEvent(new CreateEvent(module));
  }
View Full Code Here

  }
 
  public void testCreateEventForNonExistingModule() {
    replay(view);
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
    eventBus.fireEvent(new CreateEvent(module + module + module));
  }
View Full Code Here

  }
 
  public void testCreateEventForExistingModule() {
    replay(view);
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
    eventBus.fireEvent(new CreateEvent(module));
  }
View Full Code Here

  public void testCreateEventForExistingModuleWithPrefilling() {
    replay(view);
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
    final HashMap<String, Object> prefilledFields = new HashMap<String, Object>();
    prefilledFields.put("name", "Vicky");
    eventBus.fireEvent(new CreateEvent(module, prefilledFields));
  }
View Full Code Here

  }
 
  public void testCreateEvent() {
    for (final ModuleDto moduleDto: NewDtoWizard.getConfiguration().getModuleDtos().values()) {
      presenter = new ModuleButtonBarPresenter(view, eventBus, moduleDto.getModule());
      eventBus.fireEvent(new CreateEvent(moduleDto.getModule()));
    }
  }
View Full Code Here

TOP

Related Classes of honeycrm.client.mvp.events.CreateEvent

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.