Search in sources :

Example 1 with EnginesSidebarToggleGroup

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;
}
Also used : EnginesSidebarToggleGroup(org.phoenicis.javafx.components.engine.control.EnginesSidebarToggleGroup) EngineCategoryDTO(org.phoenicis.engines.dto.EngineCategoryDTO)

Example 2 with EnginesSidebarToggleGroup

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;
}
Also used : EnginesSidebarToggleGroup(org.phoenicis.javafx.components.engine.control.EnginesSidebarToggleGroup) EngineCategoryDTO(org.phoenicis.engines.dto.EngineCategoryDTO)

Aggregations

EngineCategoryDTO (org.phoenicis.engines.dto.EngineCategoryDTO)2 EnginesSidebarToggleGroup (org.phoenicis.javafx.components.engine.control.EnginesSidebarToggleGroup)2