google-code-export / macwidgets

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

Indicating if children are allowed on a SourceListItem #144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
First of all, these macwidgets tools are great. Thanks for your efforts!

I am using the SourceList to display a tree that may contain a significant
amount of data. I need to defer getting the children of each SourceListItem
until they have actually clicked on one, but would like to indicate which
SourceListItems do have children.

Currently, the expanding/collapsing triangles only show after they have
selected on a SourceListItem because that is when I am adding the children.

I could just use a JTree and the allowsChildren flag on the
DefaultMutableTreeNode, but would like to continue using the SourceList if
possible.

Any help would be appreciated!

Original issue reported on code.google.com by ward...@gmail.com on 30 Nov 2009 at 5:42

GoogleCodeExporter commented 9 years ago
It sounds like it would help you if SourceListModel or perhaps 
SourceListCategory and SourceListItem were 
interfaces. That way you could have custom implementations that wouldn't need 
to fetch all the data until 
necessary.

Any additional thoughts?

Original comment by kenneth....@gmail.com on 2 Dec 2009 at 9:08