/*
   * (non-Javadoc)
   *
   * @see
   * com.google.gwt.user.client.rpc.AsyncCallback#onSuccess(java.lang.Object)
   */
  public void onSuccess(Void result) {

    RowSelectionModel model = getSelectionModel();
    if (model != null) {
      Record[] selectedMsgs = model.getSelections();
      if (selectedMsgs != null && selectedMsgs.length > 0) {
        for (int i = 0; i < selectedMsgs.length; i++) {
          selectedMsgs[i].set(
              this.markActionType.getFlagField().name(), this.markActionType.isMark());
        }
      }
    }
    EventBroker.get().fireMessagesChanged();
  }
  /*
   * (non-Javadoc)
   *
   * @see
   * com.google.gwt.user.client.rpc.AsyncCallback#onFailure(java.lang.Throwable
   * )
   */
  public void onFailure(Throwable caught) {

    GWTExceptionHandler.handleException(caught);
    EventBroker.get().fireMessagesReload();
    EventBroker.get().fireMessagesChanged();
  }