use of org.phoenicis.javafx.components.engine.control.EnginesSidebarToggleGroup in project POL-POM-5 by PlayOnLinux.
the class EngineSidebarSkin method createSidebarToggleGroup.
/**
* Creates the {@link EnginesSidebarToggleGroup} which contains all known engine categories
*/
private EnginesSidebarToggleGroup createSidebarToggleGroup() {
final FilteredList<EngineCategoryDTO> filteredEngineCategories = getControl().getItems().filtered(getControl().getFilter()::filter);
filteredEngineCategories.predicateProperty().bind(Bindings.createObjectBinding(() -> getControl().getFilter()::filter, getControl().searchTermProperty(), getControl().showInstalledProperty(), getControl().showNotInstalledProperty()));
final EnginesSidebarToggleGroup categoryView = new EnginesSidebarToggleGroup(tr("Engines"), filteredEngineCategories);
getControl().selectedEngineCategoryProperty().bind(categoryView.selectedElementProperty());
return categoryView;
}
use of org.phoenicis.javafx.components.engine.control.EnginesSidebarToggleGroup in project POL-POM-5 by PhoenicisOrg.
the class EngineSidebarSkin method createSidebarToggleGroup.
/**
* Creates the {@link EnginesSidebarToggleGroup} which contains all known engine categories
*/
private EnginesSidebarToggleGroup createSidebarToggleGroup() {
final FilteredList<EngineCategoryDTO> filteredEngineCategories = getControl().getItems().filtered(getControl().getFilter()::filter);
filteredEngineCategories.predicateProperty().bind(Bindings.createObjectBinding(() -> getControl().getFilter()::filter, getControl().searchTermProperty(), getControl().showInstalledProperty(), getControl().showNotInstalledProperty()));
final EnginesSidebarToggleGroup categoryView = new EnginesSidebarToggleGroup(tr("Engines"), filteredEngineCategories);
getControl().selectedEngineCategoryProperty().bind(categoryView.selectedElementProperty());
return categoryView;
}
Aggregations