java - JavaFX CheckBoxTreeItem detect when checkbox selected or unselected -
how detect when checkboxtreeitem
selected or unselected?
do use event handler or change listener or something? event checking for? there list of events can listen checkboxtreeitem.selection or something?
thanks
you go see javadoc: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/checkboxtreeitem.html
you'll see there method called 'addeventhandler', think it's you're looking for.
public <e extends event> void addeventhandler(eventtype<e> eventtype, eventhandler<e> eventhandler)
'registers event handler treeitem. treeitem class allows registration of listeners notified number of items changes, position or if values change'
Comments
Post a Comment