Package honeycrm.client.mvp.events

Examples of honeycrm.client.mvp.events.UpdateEvent


        final boolean isImportDone = currentIndex == dtos.length - 1;

        if (isImportDone) {
          view.getStatus().setText("Status: Import completed");
          eventBus.fireEvent(new UpdateEvent(module));
        } else {
          importDto(dtos, 1 + currentIndex);
        }
      }
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

TOP

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

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.