jeudi 5 novembre 2015

Get checked items from a ListView which CellFactory is created with CheckBoxListCell.forListView

ListView lsvSubs
lsvSubs.setCellFactory(CheckBoxListCell.forListView(new Callback<SearchObject, ObservableValue<Boolean>>() {
     @Override
     public ObservableValue<Boolean> call(SearchObject item) {
        BooleanProperty observable = new SimpleBooleanProperty();
        return observable ;
     }
}));

So how do I get the checked lsvSubs items?




Aucun commentaire:

Enregistrer un commentaire