Package honeycrm.client.mvp.events

Examples of honeycrm.client.mvp.events.OpenEvent


        if (null != action) {
          switch (action) {
          case DETAIL:
            final Dto dto = new Dto(module);
            dto.setId(NumberParser.convertToLong(tokens[2]));
            eventBus.fireEvent(new OpenEvent(dto));
          }
        }
      }

      @Override
View Full Code Here


  private void bind() {
    view.setSelectionHandler(new SelectionHandler() {
      @Override
      public void onSelect(Dto dto) {
        eventBus.fireEvent(new OpenEvent(dto));       
      }
    });
   
    view.getDeleteButton().addClickHandler(new ClickHandler() {
      @Override
View Full Code Here

    if (isUpdate) {
      updateService.update(dto, new AsyncCallback<Void>() {
        @Override
        public void onSuccess(Void result) {
          eventBus.fireEvent(new UpdateEvent(module));
          eventBus.fireEvent(new OpenEvent(dto));
        }

        @Override
        public void onFailure(Throwable caught) {

        }
      });
    } else {
      createService.create(dto, new AsyncCallback<Long>() {
        @Override
        public void onSuccess(Long result) {
          dto.setId(result);
          eventBus.fireEvent(new UpdateEvent(module));
          eventBus.fireEvent(new OpenEvent(dto));
        }

        @Override
        public void onFailure(Throwable caught) {
View Full Code Here

abstract public class Selector {
  public Selector(final SimpleEventBus eventBus, final HasSelectionHandler hasSelectionHandler) {
    hasSelectionHandler.setSelectionHandler(new SelectionHandler() {
      @Override
      public void onSelect(Dto dto) {
        eventBus.fireEvent(new OpenEvent(dto));
      }
    });
  }
View Full Code Here

    replay(view);
    presenter = new DetailPresenter(eventBus, module, readService, updateService, createService, view);
   
    final Dto d = new Dto("Contact");
    d.setId(23L);
    eventBus.fireEvent(new OpenEvent(d));
  }
View Full Code Here

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

TOP

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

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.