Should TreeItem have a Text property?
jeff at reportmill.com
Wed May 21 18:52:52 UTC 2014
I'm working with TreeView today and it seems like it would be convenient if TreeItem had a Text property in addition to it's Graphic property. This would seem to solve the most common need for a custom TreeCell factory.
Since most trees basically show a tree of labels, it would seem to make as much sense as the Graphic property.
It might have been sufficient if the default rendering used TreeItem.toString() instead of TreeItem.getValue().toString(), although this would miss the free updating you could get by resetting a TreeItem.Text property dynamically.
More information about the openjfx-dev