use of org.phoenicis.javafx.components.application.control.ApplicationSidebarToggleGroup in project POL-POM-5 by PlayOnLinux.
the class ApplicationSidebarSkin method createSidebarToggleGroup.
private ApplicationSidebarToggleGroup createSidebarToggleGroup() {
final FilteredList<CategoryDTO> filteredCategories = getControl().getItems().filtered(getControl()::filterCategory);
filteredCategories.predicateProperty().bind(Bindings.createObjectBinding(() -> getControl()::filterCategory, getControl().searchTermProperty(), getControl().fuzzySearchRatioProperty(), getControl().operatingSystemProperty(), getControl().containAllOSCompatibleApplicationsProperty(), getControl().containCommercialApplicationsProperty(), getControl().containRequiresPatchApplicationsProperty(), getControl().containTestingApplicationsProperty()));
final ApplicationSidebarToggleGroup applicationSidebarToggleGroup = new ApplicationSidebarToggleGroup(filteredCategories);
applicationSidebarToggleGroup.setTitle(tr("Categories"));
getControl().selectedItemProperty().bind(applicationSidebarToggleGroup.selectedElementProperty());
return applicationSidebarToggleGroup;
}
use of org.phoenicis.javafx.components.application.control.ApplicationSidebarToggleGroup in project POL-POM-5 by PhoenicisOrg.
the class ApplicationSidebarSkin method createSidebarToggleGroup.
private ApplicationSidebarToggleGroup createSidebarToggleGroup() {
final FilteredList<CategoryDTO> filteredCategories = getControl().getItems().filtered(getControl()::filterCategory);
filteredCategories.predicateProperty().bind(Bindings.createObjectBinding(() -> getControl()::filterCategory, getControl().searchTermProperty(), getControl().fuzzySearchRatioProperty(), getControl().operatingSystemProperty(), getControl().containAllOSCompatibleApplicationsProperty(), getControl().containCommercialApplicationsProperty(), getControl().containRequiresPatchApplicationsProperty(), getControl().containTestingApplicationsProperty()));
final ApplicationSidebarToggleGroup applicationSidebarToggleGroup = new ApplicationSidebarToggleGroup(filteredCategories);
applicationSidebarToggleGroup.setTitle(tr("Categories"));
getControl().selectedItemProperty().bind(applicationSidebarToggleGroup.selectedElementProperty());
return applicationSidebarToggleGroup;
}
Aggregations