use of org.phoenicis.javafx.components.container.control.ContainersSidebarToggleGroup in project POL-POM-5 by PhoenicisOrg.
the class ContainerSidebarSkin method createSidebarToggleGroup.
/**
* Creates a {@link ContainersSidebarToggleGroup} object containing all installed containers
*/
private ContainersSidebarToggleGroup createSidebarToggleGroup() {
final FilteredList<ContainerCategoryDTO> filteredContainerCategories = getControl().getItems().filtered(getControl().getFilter()::filter);
filteredContainerCategories.predicateProperty().bind(Bindings.createObjectBinding(() -> getControl().getFilter()::filter, getControl().searchTermProperty(), getControl().selectedContainerCategoryProperty()));
final ContainersSidebarToggleGroup sidebarToggleGroup = new ContainersSidebarToggleGroup(tr("Containers"), filteredContainerCategories);
getControl().selectedContainerCategoryProperty().bind(sidebarToggleGroup.selectedElementProperty());
return sidebarToggleGroup;
}
use of org.phoenicis.javafx.components.container.control.ContainersSidebarToggleGroup in project POL-POM-5 by PlayOnLinux.
the class ContainerSidebarSkin method createSidebarToggleGroup.
/**
* Creates a {@link ContainersSidebarToggleGroup} object containing all installed containers
*/
private ContainersSidebarToggleGroup createSidebarToggleGroup() {
final FilteredList<ContainerCategoryDTO> filteredContainerCategories = getControl().getItems().filtered(getControl().getFilter()::filter);
filteredContainerCategories.predicateProperty().bind(Bindings.createObjectBinding(() -> getControl().getFilter()::filter, getControl().searchTermProperty(), getControl().selectedContainerCategoryProperty()));
final ContainersSidebarToggleGroup sidebarToggleGroup = new ContainersSidebarToggleGroup(tr("Containers"), filteredContainerCategories);
getControl().selectedContainerCategoryProperty().bind(sidebarToggleGroup.selectedElementProperty());
return sidebarToggleGroup;
}
Aggregations