Package com.casamind.adware.client.event

Examples of com.casamind.adware.client.event.UserMessageEvent


      @Override
      public void onSuccess(Boolean result) {
        if (result == true) {
          eventBus.fireEvent(new EntityDeletedEvent());
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Info, 0));
          sendCancellationMail(slot, "NOT IMPLEMENTED");
        } else {
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Error, 0));
        }
      }

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


        mailService.slotCancelled(dto, reason, cb);
      }

      @Override
      public void onSuccess(Void result) {
        eventBus.fireEvent(new UserMessageEvent(displayMessages.confirmationMailTaskScheduled(), InfoTypes.Info, 0));
      }

      @Override
      public void onFailure(Throwable caught) {
        Window.alert(errorMessages.rpcError(caught.getMessage()));
View Full Code Here

      @Override
      public void onSuccess(SlotDTO result) {
        if (result != null) {
          eventBus.fireEvent(new EntityUpdatedEvent(result));
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Info, 0));
        } else {
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Error, 0));
        }
      }

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

        display.getCalendarFrame().setUrl(result);
      }

      @Override
      public void onFailure(Throwable caught) {
        eventBus.fireEvent(new UserMessageEvent(errorMessages.rpcError(caught.getMessage()), InfoTypes.Error, 0));
      }
    }.retry(3);
  }
View Full Code Here

                  }

                  @Override
                  public void onSuccess(Boolean result) {
                    // say that something went wrong
                    eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Error, 0));
                  }

                  @Override
                  public void onFailure(Throwable caught) {
                    if (caught instanceof com.casamind.adware.shared.exception.NotLoggedInException) {
View Full Code Here

      @Override
      public void onSuccess(Boolean result) {
        if (result == true) {
          eventBus.fireEvent(new EntityDeletedEvent());
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Info, 0));
        } else {
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Error, 0));
        }
      }

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

      @Override
      public void onSuccess(ResourceDTO result) {
        if (result != null) {
          eventBus.fireEvent(new EntityUpdatedEvent(result));
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Info, 0));
        } else {
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Error, 0));
        }
      }

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

      @Override
      public void onSuccess(Boolean result) {       
        if(result == true){
          eventBus.fireEvent(new EntityDeletedEvent());
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Info, 0));         
        }else {
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Error, 0));
        }
      }

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

      @Override
      public void onSuccess(ProductDTO result) {
        if(result!=null){
          eventBus.fireEvent(new EntityUpdatedEvent(result));
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Info, 0));         
        }else {
          eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Error, 0));
        }
      }

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

      @Override
      public void onSuccess(List<SlotDTO> results) {
        display.getSlotsDataProvider().getList().remove(objects);
        display.redrawSlotsGrid();
        eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Info, 0));
        List<SlotDTO> invoiced = new ArrayList<SlotDTO>();
        List<SlotDTO> approved = new ArrayList<SlotDTO>();
        List<SlotDTO> rejected = new ArrayList<SlotDTO>();
        List<SlotDTO> cancelled = new ArrayList<SlotDTO>();
        List<SlotDTO> reclaimed = new ArrayList<SlotDTO>();
View Full Code Here

TOP

Related Classes of com.casamind.adware.client.event.UserMessageEvent

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.