controlsfx / controlsfx

High quality UI controls to complement the core JavaFX distribution
https://controlsfx.org
BSD 3-Clause "New" or "Revised" License
1.58k stars 269 forks source link

CheckListView: Listener for checkModelProperty is not called #1544

Open realpixelcode opened 7 months ago

realpixelcode commented 7 months ago

My listener for the [checkModelProperty](https://controlsfx.github.io/javadoc/11.1.2/org.controlsfx.controls/org/controlsfx/control/CheckListView.html#checkModelProperty()) is not called when checking or unchecking any of the items in the list. Nothing ever happens, not even an exception is thrown.

public class Controller implements Initializable {
  @FXML private CheckListView<String> checkListView;

  @Override
  public void initialize(URL location, ResourceBundle resources) {
    this.checkListView.checkModelProperty().addListener(
      (observable, oldValue, newValue) -> this.checkListView.setDisable(true));
  }
}

I use version 11.2.1.