BaseObservableList

Jonathan Giles jonathan.giles at oracle.com
Wed Dec 14 13:21:43 PST 2011


On 14/12/2011 11:24 p.m., Martin Sladecek wrote:
> On 12/14/2011 02:13 PM, Gaja Sutra wrote:
>>> What do you think about this API? 
>> Interesting change. I will try to use it when I will be able to put a 
>> hand on it, but currently I think this API is simple and good on 
>> paper (and useful for me). I have two small questions:
>>
>> Will BaseObservableList (read-write collection) be a 
>> replacement/superclass of 
>> com.sun.javafx.scene.control.ReadOnlyUnbackedObservableList 
>> (read-only collection in control package)?
>>
> Jonathan needs to comment this, but I think BaseObservableList could 
> be used instead of ReadOnlyUnbackedObservableList, or could be used as 
> it's superclass.
>

I'd quite happily refactor ReadOnlyUnbackedObservableList to extend from 
BaseObservableList, if it reduces the amount of code needing to be 
maintained in ROUOL (whilst retaining the same behavior). I don't think 
I could use BaseObservableList outright, but I'll happily be proven 
wrong (and I'll look into it further when the code arrives in the repo). 
I have no intention of making this class public however - it is an 
implementation detail of the various selection models in JavaFX UI controls.

-- Jonathan


More information about the openjfx-dev mailing list