im still having some issues with the class ListView, either it is because of my english, or the cryptic API description english :D
I want to create a simple ListView, not too hard yet.
Here my question, thanks to everyone who tries to help already at this point:
To add Checkboxes I figured to use the method setCellFactory(). The arguments of this method are a bit confusing already, and I don't really get how to use them right. I still figures to use somewhat like:
myListView.setCellFactory(CheckBoxListCell.forListView(property));
With "property" beeing somewhat called a Callback, I think Callback means somewhat like its a bidirectional bounding.
Ok so I create a
property = new CallBack<String, ObservableValue<Boolean>>().
I hope I'm not too wrong right now. But I appreciate every correction this far, to understand better what I am doing here :D
As I have a smart compiler, he tells me if i create that new Callback I need to Overwrite the method call.
And here I am stuck. What do I do with that method call? I can implement it, but what should I return, or use it for? I want to end up clicking my checkbox on any f****** listItem just to display a "hi" in console, may you help me, please?
Aucun commentaire:
Enregistrer un commentaire