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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -