christmo / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

Add ability to iterate over items in a SourceListCategory #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'd like to be able to iterate over all the categories and items in a
SourceList. Although I can iterate over the top-level categories, I can't
find a way to iterate any deeper.

final List<SourceListCategory> categories =
sourceList.getModel().getCategories();
for (SourceListCategory category : categories) {
    // iterate over the items within the category
    .... no methods available to do this ... ?
}

Original issue reported on code.google.com by steve.mc...@gmail.com on 27 Oct 2008 at 7:01

GoogleCodeExporter commented 8 years ago
I agree with this, but I think this is an enhancement and not a defect. This is
something that would make things really easier for a lot of common tasks. 

Original comment by alexandr...@gmail.com on 31 Oct 2008 at 1:51

GoogleCodeExporter commented 8 years ago
Sorry for the really long delay on this one. I've made two methods public:

SourceListCategory.getItems
SourceListItem.getChildItems

Let me know if this does the trick (latest changes in Subversion) and I'll 
close this issue.

Original comment by kenneth....@gmail.com on 9 Jan 2009 at 12:58

GoogleCodeExporter commented 8 years ago

Original comment by kenneth....@gmail.com on 9 Jan 2009 at 12:58

GoogleCodeExporter commented 8 years ago

Original comment by kenneth....@gmail.com on 10 Jan 2009 at 12:27