1 package fi.jyu.mit.fxgui;
3 import java.util.ArrayList;
5 import javafx.beans.value.ChangeListener;
6 import javafx.scene.control.CheckBox;
14 public class CheckBoxChooser<T>
extends BaseBoxChooser<T, CheckBox> {
17 protected void removeListener(CheckBox node, ArrayList<ChangeListener<Boolean>> list) {
18 for (ChangeListener<Boolean> changeListener : list) {
19 node.selectedProperty().removeListener(changeListener);
27 CheckBox box =
new CheckBox(name);
28 box.setMnemonicParsing(
true);
35 box.selectedProperty().addListener(listener);
41 return component.selectedProperty().get();
47 boolean oldSelect = isComponentSelected(component);
48 component.selectedProperty().set(value);