Search in sources :

Example 1 with ApplicationSidebarToggleGroup

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;
}
Also used : CategoryDTO(org.phoenicis.repository.dto.CategoryDTO) ApplicationSidebarToggleGroup(org.phoenicis.javafx.components.application.control.ApplicationSidebarToggleGroup)

Example 2 with 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;
}
Also used : CategoryDTO(org.phoenicis.repository.dto.CategoryDTO) ApplicationSidebarToggleGroup(org.phoenicis.javafx.components.application.control.ApplicationSidebarToggleGroup)

Aggregations

ApplicationSidebarToggleGroup (org.phoenicis.javafx.components.application.control.ApplicationSidebarToggleGroup)2 CategoryDTO (org.phoenicis.repository.dto.CategoryDTO)2