Search in sources :

Example 6 with SidebarGroup

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));
}
Also used : CheckBox(javafx.scene.control.CheckBox) Tooltip(javafx.scene.control.Tooltip) SidebarGroup(org.phoenicis.javafx.components.common.control.SidebarGroup)

Aggregations

SidebarGroup (org.phoenicis.javafx.components.common.control.SidebarGroup)6 CheckBox (javafx.scene.control.CheckBox)4 File (java.io.File)2 Button (javafx.scene.control.Button)2 Tooltip (javafx.scene.control.Tooltip)2 FileChooser (javafx.stage.FileChooser)2