On 8/15/06, wsnyder6 <
wsnyder6@...> wrote:
> I also thought that I could use the TransformedList like such:
> class ItemsToLabelsList extends TransformedList {
> public IssuesToUsersList(EventList source) {
> super(source);
> for (Object elem : source) {
> addAll( ((Issue)elem).getUsers() );
> }
> source.addListEventListener(this);
> }
> public void listChanged(ListEvent listChanges) {
> updates.forwardEvent(listChanges);
> }
> }
Unforunately, this won't work since the TransformedList needs
to map indices from one list to another. For example, the addAll()
method won't work - it will just call through to source.
Regardless, CollectionList does what you want. Let us know
if you run into further problems!
Cheers,
Jesse
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...