private void init() { boolean loaded = createFilterObject(); fullTextFilter.initialize(filterObject, filterObject.getFilterDataDto().getFullTextFilter()); userFilter.initialize(filterObject); classOfServiceFilter.initialize(filterObject); boardFilter.initialize(filterObject); tagsFilter.initialize(filterObject); projectOnBoardFilter.initialize(filterObject); fillTaskTags(filterObject, loaded); fillUsers(filterObject, loaded); fillClassOfServices(filterObject, loaded); fillBoards(filterObject, loaded); fillProjectsOnBoards(filterObject, loaded); initDueDate(filterObject); initActivateFilter(filterObject); // using just '|' because I need all the validations to be executed if (!fullTextFilter.validate() | !validateDueDate()) { return; } filterObject.fireFilterChangedEvent(); }
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(); }