use of org.phoenicis.javafx.components.installation.control.InstallationsSidebarToggleGroup in project POL-POM-5 by PhoenicisOrg.
the class InstallationSidebarSkin method createSidebarToggleGroup.
/**
* Creates the {@link InstallationsSidebarToggleGroup} which contains all active installation categories
*/
private InstallationsSidebarToggleGroup createSidebarToggleGroup() {
final FilteredList<InstallationCategoryDTO> filteredInstallationCategories = getControl().getItems().filtered(getControl().getFilter()::filter);
filteredInstallationCategories.predicateProperty().bind(Bindings.createObjectBinding(() -> getControl().getFilter()::filter, getControl().searchTermProperty()));
final InstallationsSidebarToggleGroup categoryView = new InstallationsSidebarToggleGroup(tr("Categories"), filteredInstallationCategories);
getControl().selectedInstallationCategoryProperty().bind(categoryView.selectedElementProperty());
return categoryView;
}
use of org.phoenicis.javafx.components.installation.control.InstallationsSidebarToggleGroup in project POL-POM-5 by PlayOnLinux.
the class InstallationSidebarSkin method createSidebarToggleGroup.
/**
* Creates the {@link InstallationsSidebarToggleGroup} which contains all active installation categories
*/
private InstallationsSidebarToggleGroup createSidebarToggleGroup() {
final FilteredList<InstallationCategoryDTO> filteredInstallationCategories = getControl().getItems().filtered(getControl().getFilter()::filter);
filteredInstallationCategories.predicateProperty().bind(Bindings.createObjectBinding(() -> getControl().getFilter()::filter, getControl().searchTermProperty()));
final InstallationsSidebarToggleGroup categoryView = new InstallationsSidebarToggleGroup(tr("Categories"), filteredInstallationCategories);
getControl().selectedInstallationCategoryProperty().bind(categoryView.selectedElementProperty());
return categoryView;
}
Aggregations