private void setDueDateToFilterObjectAndFireEvent() {
    if (!validateDueDate()) {
      return;
    }

    Dtos.DateMatcherDataDto dueDateMatches = DtoFactory.dateMatcherDataDto();
    dueDateMatches.setCondition(dueDateCondition.getSelectedIndex());

    dueDateMatches.setDateFrom(dueDateFromBox.getText());
    dueDateMatches.setDateTo(dueDateToBox.getText());
    filterObject.getFilterDataDto().setDueDate(dueDateMatches);
    filterObject.fireFilterChangedEvent();
  }
  private boolean createFilterObject() {
    boolean loaded = true;

    filterObject = new BoardsFilter(this);
    Dtos.FilterDataDto filterDataDto = filterObject.loadFilterData();

    if (filterDataDto == null) {
      filterDataDto = DtoFactory.filterDataDto();

      filterDataDto.setFullTextFilter(DtoFactory.fullTextMatcherDataDto());
      List<Dtos.FilteredEntity> entities = new ArrayList<Dtos.FilteredEntity>();
      filterDataDto.getFullTextFilter().setCaseSensitive(false);
      filterDataDto.getFullTextFilter().setInverse(false);
      filterDataDto.getFullTextFilter().setRegex(false);
      filterDataDto.getFullTextFilter().setString("");

      filterDataDto.getFullTextFilter().setFilteredEntities(entities);

      filterDataDto.setClassesOfServices(new ArrayList<Dtos.ClassOfServiceWithSelectedDto>());
      filterDataDto.setUsers(new ArrayList<Dtos.UserWithSelectedDto>());
      filterDataDto.setBoards(new ArrayList<Dtos.BoardWithSelectedDto>());
      filterDataDto.setBoardWithProjectsDto(new ArrayList<Dtos.BoardWithProjectsWithSelectedDto>());
      filterDataDto.setTaskTags(new ArrayList<Dtos.TaskTagWithSelected>());

      Dtos.DateMatcherDataDto dueDateFilter = DtoFactory.dateMatcherDataDto();
      dueDateFilter.setCondition(0);
      dueDateFilter.setDateFrom("");
      dueDateFilter.setDateTo("");
      filterDataDto.setDueDate(dueDateFilter);

      boolean active = filterDataDto.isActive() != null ? filterDataDto.isActive() : true;
      filterDataDto.setActive(active);

      loaded = false;
    }

    filterObject.setFilterDataDto(filterDataDto);

    return loaded;
  }