@PostConstruct public void init() { searchRequest.setModel(new CaseMilestoneSearchRequest(), StateSync.FROM_MODEL); searchRequest.addPropertyChangeHandler( e -> presenter.searchCaseMilestones() ); onSortAlphaDesc(null); }
if (dotPos > 0) { final DataBinder nested = createNestedBinder(property, StateSync.FROM_MODEL); unsubHandles.add(nested.addPropertyChangeHandler(property.substring(dotPos + 1), handler)); unsubHandles.add(nested.addPropertyChangeHandler(property, handler));
if (dotPos > 0) { final DataBinder nested = createNestedBinder(property, StateSync.FROM_MODEL); unsubHandles.add(nested.addPropertyChangeHandler(property.substring(dotPos + 1), handler)); unsubHandles.add(nested.addPropertyChangeHandler(property, handler));
@PostConstruct public void init() { stream(CaseStatusEnum.values()) .collect(toMap(e -> translationService.format(e.getLabel()), e -> e.getStatus())) .entrySet().stream().sorted((s1, s2) -> s1.getKey().compareTo(s2.getKey())) .forEach(e -> status.addOption(e.getKey(), e.getValue().toString())); status.refresh(); stream(CaseInstanceSortBy.values()).collect(toMap(s -> s.name(), s -> translationService.format(s.name()))).entrySet().stream().sorted((e1, e2) -> e1.getValue().compareTo(e2.getValue())).forEach(s -> sortBy.addOption(s.getValue(), s.getKey())); sortBy.refresh(); searchRequest.addPropertyChangeHandler("sortBy", e -> { if(e.getNewValue() == CaseInstanceSortBy.CASE_ID){ addCSSClass(sortStartedAsc, "hidden"); addCSSClass(sortStartedDesc, "hidden"); onSortCaseIdDesc(null); } else { addCSSClass(sortCaseIdAsc, "hidden"); addCSSClass(sortCaseIdDesc, "hidden"); onSortStartedDesc(null); } }); searchRequest.setModel(new CaseInstanceSearchRequest(), StateSync.FROM_MODEL); searchRequest.addPropertyChangeHandler(e -> presenter.searchCaseInstances()); }
searchRequest.addPropertyChangeHandler("sortBy", e -> { if (e.getNewValue() == CaseInstanceSortBy.CASE_ID) { searchRequest.addPropertyChangeHandler(e -> presenter.searchCaseInstances());
binder.addPropertyChangeHandler("**", handler);
binder.addPropertyChangeHandler("**", handler);
searchRequest.addPropertyChangeHandler("sortBy", e -> { if (e.getNewValue() == CaseInstanceSortBy.CASE_ID) { searchRequest.addPropertyChangeHandler(e -> presenter.searchCaseInstances());
@PostConstruct public void init() { tooltip(sortAlphaAsc); sortAlphaAsc.setAttribute("data-original-title", translationService.format(SORT_BY_NAME_DESC)); tooltip(sortAlphaDesc); sortAlphaDesc.setAttribute("data-original-title", translationService.format(SORT_BY_NAME_ASC)); searchRequest.setModel(new CaseMilestoneSearchRequest(), StateSync.FROM_MODEL); searchRequest.addPropertyChangeHandler(e -> presenter.searchCaseMilestones()); onSortAlphaDesc(null); }
@PostConstruct public void init() { tooltip(sortAlphaAsc); sortAlphaAsc.setAttribute("data-original-title", translationService.format(SORT_BY_NAME_DESC)); tooltip(sortAlphaDesc); sortAlphaDesc.setAttribute("data-original-title", translationService.format(SORT_BY_NAME_ASC)); searchRequest.setModel(new CaseMilestoneSearchRequest(), StateSync.FROM_MODEL); searchRequest.addPropertyChangeHandler(e -> presenter.searchCaseMilestones()); onSortAlphaDesc(null); }
newValue)); } else { PropertyChangeUnsubscribeHandle unsubscribeHandle = binder.addPropertyChangeHandler(formField.getFieldBinding(), event -> fieldChangeManager.processFieldChange(fieldName, event.getNewValue(),