[antlr-interest] On trees and JavaBeans, part 2: tree creation
eprice at vettro.com
eprice at vettro.com
Wed Apr 20 09:18:09 PDT 2005
>> Swing has a brilliant design for the tree that gives great model
>> separation from the UI.
>>
>> JTree
>> | calls
>> |
>> V
>> TreeModel
>> | calls
>> |
>> V
>> Your real data
>
> Which implements the TreeNode interface ...
This seems like a misunderstanding.
If I understand Scott's proposal correctly, the "real data" does *not*
have to implement any particular interface. Instead, the TreeModel
provides a single interface for the entire tree which adapts the "real
data" however it wants.
-Ed
More information about the antlr-interest
mailing list