TreeView halp

The TreeViewItem has a callback itemSelectionChanged (bool isNowSelected).

So in your derived TreeViewItem (that you have to inherit anyway) you can add a ChangeBroadcaster and make your TreeView or whatever you want to trigger the corresponding ChangeListener.
That’s how the FileTreeComponent does it (well, without the ChangeListener, but that’s easier IMHO)

3 Likes