Package com.casamind.adware.client.event

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


        mailService.slotsApproved(dto, cb);
      }

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

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


        mailService.slotInvoiced(dto, dueDate, cb);
      }

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

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

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

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

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

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

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

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

            @Override
            public void onSuccess(CompanyDTO result) {
              if (result != null) {
                eventBus.fireEvent(new EntityEditEvent(result, EntityTypes.Company));
              } else {
                eventBus.fireEvent(new UserMessageEvent(null, InfoTypes.Error, 0));
              }
            }

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

              CompanyEditPresenter.this.display.getServicesList().setSelectedIndex(1);
            else if (authProvider.equals(AuthTypes.TWITTER))
              CompanyEditPresenter.this.display.getServicesList().setSelectedIndex(2);
            puopulateCellTable();
          } 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(CompanyDTO 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(PublisherDTO 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

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.