To design a TreeViewer demo application, you must create your node class as your data model.
要设计TreeViewer演示应用程序,您必须创建节点类作为数据模型。
First, we create one TreeViewer that can display NBA or MLB players according to your choice.
首先,创建一个可以根据选择显示NBA或MLB球员的TreeViewer。
The idea is that a TreeViewer knows about the root element of the tree that it is going to display.
这里的想法是TreeViewer知道要显示的树的根元素。
应用推荐