To TreeModel or not to TreeModel
- From: Günther Schmidt <gue.schmidt@xxxxxx>
- Date: Thu, 08 Jun 2006 15:50:50 +0200
Hi all,
I've been working on something for quite sometime now, but still not quite certain how to go about it.
I'm working on an app for a bookshop. The owner is selling used books, and since he is a bit of an order freak he has categorized these books in about 300 hundred different catalogs, most of which are subcatalogs at varying depth.
So I created a class catalog, which holds a collection of catalogs (nodes) and a collection of books (leafs).
So far so good.
But it turns out that I want to iterate over the catalog(s) much as I would like to iterate over a collection.
I've implemented the functionality, with recursive and non-recursive iteration, but at the end of the day I'm not sure whether to use OA's TreeModel instead or not.
What would you choose in this scenario?
Günther
.
- Follow-Ups:
- Re: To TreeModel or not to TreeModel
- From: Chris Uppal
- Re: To TreeModel or not to TreeModel
- From: Eric Taylor
- Re: To TreeModel or not to TreeModel
- Prev by Date: getColoredSource??
- Next by Date: Re: To TreeModel or not to TreeModel
- Previous by thread: getColoredSource??
- Next by thread: Re: To TreeModel or not to TreeModel
- Index(es):
Relevant Pages
|