Search in sources :

Example 1 with InstallationsSidebarToggleGroup

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;
}
Also used : InstallationsSidebarToggleGroup(org.phoenicis.javafx.components.installation.control.InstallationsSidebarToggleGroup) InstallationCategoryDTO(org.phoenicis.javafx.views.mainwindow.installations.dto.InstallationCategoryDTO)

Example 2 with InstallationsSidebarToggleGroup

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;
}
Also used : InstallationsSidebarToggleGroup(org.phoenicis.javafx.components.installation.control.InstallationsSidebarToggleGroup) InstallationCategoryDTO(org.phoenicis.javafx.views.mainwindow.installations.dto.InstallationCategoryDTO)

Aggregations

InstallationsSidebarToggleGroup (org.phoenicis.javafx.components.installation.control.InstallationsSidebarToggleGroup)2 InstallationCategoryDTO (org.phoenicis.javafx.views.mainwindow.installations.dto.InstallationCategoryDTO)2