TreeItem enhancements

Jonathan Giles jonathan.giles at oracle.com
Mon Dec 1 19:20:21 UTC 2014


These sound like decent suggestions - I would encourage you to file a 
tweak request in jira. It would be great if in the development of your 
work you could prototype and explore these suggestions in greater depth 
- I am always happy to work with patches as a starting point.

-- Jonathan

On 2/12/2014 7:28 a.m., Werner Lehmann wrote:
> Hi,
>
> I am currently building a visual designer for Jasper Reports (to be 
> embedded in our product). The design model is basically a design tree, 
> so I am extending TreeItem for its element classes, e.g. StaticText or 
> SubReport. This has two benefits: 1. I get to show the model in a 
> TreeView, and 2. I get tree change notifications bubbled from leaf to 
> root item - both at no extra cost.
>
> Obviously "my" TreeItems have additional observable properties such as 
> x/y/w/h. It would be very cool if changes to those properties could 
> also be bubbled to the root using the same change bubbling technique. 
> Only little things are missing here:
>
> - ability to create TreeItem.children with an observable-list extractor
> - ability to bubble ListChangeListener.Change.wasUpdated events
>
> Also, if we could create TreeItem.children for ourselves in a factory 
> or somesuch, we could use a Filtered- or SortedList, too. I imagine 
> this could simplify tree filtering a lot (ScenicView!).
>
> Thoughts about this?
>
> Rgds
> Werner



More information about the openjfx-dev mailing list