tbee at tbee.org
Sat Dec 17 02:26:00 PST 2011
> In essence, this approach is a one-method Callback<Integer, T> 'data provider', where the method is 'public T call(Integer index)'. It is a simpler data provider than what you mention. I guess my question is whether the additional API is required? Also, in my opinion, I think Integer, rather than BigInteger, is likely sufficient - but this isn't a major issue for me right now.
I understand and am curious if it matches all that I needed. Basically what you see in my DataProvider API is what I needed while implementing the spinner:
- is there a next value? (I generalized that to "give me the idx of the next value", which allows for some additional dynamics.)
- is there a previous value? (dito)
- what is the value for idx X?
- what is the idx of value X?
Now, thinking about, this multiple times the same value in the domain may be an issue for the last one.
More information about the openjfx-dev