Tree Model

From Documentation
Revision as of 03:59, 30 December 2010 by Tomyeh (talk | contribs)

Here we describe how to implement a tree model (TreeModel). For the concept about component, model and render, please refer to the Model-driven Display section.

Instead of implementing TreeModel from scratch, it is suggested to extend from AbstractTreeModel, which will handle the data listeners transparently.

In additions, if the tree is small enough to be loaded completely, you could use the default implementation, SimpleTreeModel, which uses SimpleTreeNode to construct a tree.

Version History

Last Update : 2010/12/30


Version Date Content
     



Last Update : 2010/12/30

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.