use of org.phoenicis.javafx.components.common.control.SidebarGroup in project POL-POM-5 by PhoenicisOrg.
the class ApplicationSidebarSkin method createFilterGroup.
private SidebarGroup<CheckBox> createFilterGroup() {
final CheckBox testingCheck = createCheckBox(tr("Testing"));
testingCheck.setTooltip(new Tooltip(tr("Also show apps in testing state")));
getControl().containTestingApplicationsProperty().bind(testingCheck.selectedProperty());
final CheckBox requiresPatchCheck = createCheckBox(tr("Patch required"));
requiresPatchCheck.setTooltip(new Tooltip(tr("Also show apps, where CD patch is necessary")));
getControl().containRequiresPatchApplicationsProperty().bind(requiresPatchCheck.selectedProperty());
final CheckBox commercialCheck = createCheckBox(tr("Commercial"));
commercialCheck.setTooltip(new Tooltip(tr("Also show apps not free of costs")));
commercialCheck.setSelected(true);
getControl().containCommercialApplicationsProperty().bind(commercialCheck.selectedProperty());
final CheckBox operatingSystemCheck = createCheckBox(tr("All Operating Systems"));
operatingSystemCheck.setTooltip(new Tooltip(tr("Also show apps tested on different OS")));
getControl().containAllOSCompatibleApplicationsProperty().bind(operatingSystemCheck.selectedProperty());
return new SidebarGroup<>(tr("Filters"), FXCollections.observableArrayList(testingCheck, requiresPatchCheck, commercialCheck, operatingSystemCheck));
}
Aggregations