K
Karsten Wutzke
Hello!
Does anyone know of a collection package/API that extends
java.util.Observable collection classes such as Set, List and Map?
I also looked at Apache collections, but they don't seem to include
that.
I'd also like to get some input on whether I/you/someone need/s
Observable collections at all. For me its main use would be for GUI
updates (of course), for JList's, JTabbedPane's, that is higher level
models.
I've also looked at JGoodies binding for that matter, however that
package doesn't use java.util.Observable and (which is worse) doesn't
seem to be compatible with JTabbedPane's. So I came to the point
writing Observable collections.
An idea would be to build a set of collection classes as a Decorator,
adding allow/forbid null, allow/forbid duplicates, and Observable
functionality as needed. Of course, this will decrease the
performance, but this is not much of a matter (at least right now).
Since I couldn't find something like it, I suspect my approach might
not be the best and/or that there are different approaches.
Can you share your experience with me please? What do you think
(comments and suggestions welcome)?
Karsten
Does anyone know of a collection package/API that extends
java.util.Observable collection classes such as Set, List and Map?
I also looked at Apache collections, but they don't seem to include
that.
I'd also like to get some input on whether I/you/someone need/s
Observable collections at all. For me its main use would be for GUI
updates (of course), for JList's, JTabbedPane's, that is higher level
models.
I've also looked at JGoodies binding for that matter, however that
package doesn't use java.util.Observable and (which is worse) doesn't
seem to be compatible with JTabbedPane's. So I came to the point
writing Observable collections.
An idea would be to build a set of collection classes as a Decorator,
adding allow/forbid null, allow/forbid duplicates, and Observable
functionality as needed. Of course, this will decrease the
performance, but this is not much of a matter (at least right now).
Since I couldn't find something like it, I suspect my approach might
not be the best and/or that there are different approaches.
Can you share your experience with me please? What do you think
(comments and suggestions welcome)?
Karsten