Package honeycrm.client.mvp.events

Examples of honeycrm.client.mvp.events.RpcEndEvent


      @Override
      public void callback(ReadServiceAsync arg) {
        arg.getAll(module, sortCol, direction, start, end, new AsyncCallback<ListQueryResult>() {
          @Override
          public void onSuccess(ListQueryResult result) {
            bus.fireEvent(new RpcEndEvent());
            insertRefreshedData(display, result);
          }

          @Override
          public void onFailure(Throwable caught) {
            bus.fireEvent(new RpcEndEvent());
            Window.alert("Could not load");
          }
        });
      }
    });
View Full Code Here


        @Override
        public void callback(ReadServiceAsync arg) {
          arg.fulltextSearchForModule(module, search, start, end, new AsyncCallback<ListQueryResult>() {
            @Override
            public void onSuccess(ListQueryResult result) {
              bus.fireEvent(new RpcEndEvent());
              insertRefreshedData(display, result);
            }
   
            @Override
            public void onFailure(Throwable caught) {
              bus.fireEvent(new RpcEndEvent());
            }
          });
        }
      });
    }
View Full Code Here

      eventBus.fireEvent(new RpcBeginEvent());
      readService.getAllRelated(event.getDto().getId(), event.getDto().getModule(), new AsyncCallback<Map<String, ListQueryResult>>() {
        @Override
        public void onSuccess(Map<String, ListQueryResult> result) {
          view.insertRefreshedData(result, event.getDto().getId());
          eventBus.fireEvent(new RpcEndEvent());
        }

        @Override
        public void onFailure(Throwable caught) {
          eventBus.fireEvent(new RpcEndEvent());
        }
      });
    }
  }
View Full Code Here

      eventBus.fireEvent(new RpcBeginEvent());
      readService.getAllAssignedTo(userId, 0, 20, new AsyncCallback<HashMap<String,ListQueryResult>>() {
        @Override
        public void onSuccess(HashMap<String, ListQueryResult> result) {
          view.insertRefreshedData(result);
          eventBus.fireEvent(new RpcEndEvent());
        }
       
        @Override
        public void onFailure(Throwable caught) {
          eventBus.fireEvent(new RpcEndEvent());
        }
      });
    }
  }
View Full Code Here

  public void testOnOffBehaviour() {
    this.presenter = new LoadPresenter(viewMock, eventBus);

    eventBus.fireEvent(new RpcBeginEvent());
    assertTrue(presenter.isLoading());
    eventBus.fireEvent(new RpcEndEvent());
    assertFalse(presenter.isLoading());
  }
View Full Code Here

    assertTrue(presenter.isLoading());
    eventBus.fireEvent(new RpcBeginEvent());
    assertTrue(presenter.isLoading());
    eventBus.fireEvent(new RpcBeginEvent());
    assertTrue(presenter.isLoading());
    eventBus.fireEvent(new RpcEndEvent());
    assertTrue(presenter.isLoading());
   
    eventBus.fireEvent(new RpcBeginEvent());
    assertTrue(presenter.isLoading());
    eventBus.fireEvent(new RpcEndEvent());
    assertTrue(presenter.isLoading());

    eventBus.fireEvent(new RpcBeginEvent());
    assertTrue(presenter.isLoading());
    eventBus.fireEvent(new RpcBeginEvent());
    assertTrue(presenter.isLoading());
   
    eventBus.fireEvent(new RpcEndEvent());
    assertTrue(presenter.isLoading());
    eventBus.fireEvent(new RpcEndEvent());
    assertTrue(presenter.isLoading());
    eventBus.fireEvent(new RpcEndEvent());
    assertTrue(presenter.isLoading());

    eventBus.fireEvent(new RpcEndEvent());
    assertFalse(presenter.isLoading());
  }
View Full Code Here

TOP

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

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.