Package honeycrm.client.mvp.events

Examples of honeycrm.client.mvp.events.RpcBeginEvent


    final int start = range.getStart();
    final int end = start + range.getLength();
    final String sortCol = "name";
    final SortDirection direction = (columnSortList == null || columnSortList.size() == 0) ? SortDirection.Ascending : (columnSortList.get(0).isAscending() ? SortDirection.Ascending : SortDirection.Descending);

    bus.fireEvent(new RpcBeginEvent());
   
    AsyncProvider.getReadService(new Callback<ReadServiceAsync>() {
      @Override
      public void callback(ReadServiceAsync arg) {
        arg.getAll(module, sortCol, direction, start, end, new AsyncCallback<ListQueryResult>() {
View Full Code Here


    } else {
      final Range range = display.getVisibleRange();
      final int start = range.getStart();
      final int end = start + range.getLength();
     
      bus.fireEvent(new RpcBeginEvent());
     
      AsyncProvider.getReadService(new Callback<ReadServiceAsync>() {
        @Override
        public void callback(ReadServiceAsync arg) {
          arg.fulltextSearchForModule(module, search, start, end, new AsyncCallback<ListQueryResult>() {
View Full Code Here

  private void refreshRelationships(final OpenEvent event) {
    if (module.equals(event.getDto().getModule())) {
      view.makeVisible();
      // view.refresh(event.getDto().getId());

      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());
View Full Code Here

    });
  }

  protected void refresh() {
    if (userId > 0) {
      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());
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

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

    eventBus.fireEvent(new RpcBeginEvent());
    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());
View Full Code Here

TOP

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

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.