Location:
Search - TreeModel
Search list
Description: 用java写得一个treetable实现,可以携带用户自己的数据类。本例带有一个简单得使用例子:
1、导入到Eclipse,把package换成你自己得package
2、运行TreetableMain.java即可
这是本人参考sun公司给出得那个treetable例子写得。重大改进如下:
1、sun公司的例子可能是由于写得较早,里面重写了TreeModel和AbstractTableModel的很多方法。本人改进了它里面的TreeTableModel和TreeTableModelAdapter类,直接从TreeModel和AbstractTableModel继承,所以使代码大幅度缩短。
2、建立了TreetableUserClass抽象类,这个类专门用于存储我们自己的数据。内建递归算法和行转换方法,使一个此类的实例对应于treetable的一行。例子里面有一个很简单的此类的实现,可以直接运行。
(前面上传过一次,不过好像不成功,这里重新传一次。)-written with a treetable realized, users can bring their own data types. The cases with a simple example in the use of : 1, Introduction to the Eclipse, you package replaced two of its own package, can run TreetableMain.java this is my reference sun in the company that is written treetable example. Significant improvements are as follows : 1. Sun's example may be due to earlier written inside a rewrite of the TreeModel and AbstractTableModel many ways. I improved it and inside the TreeTableModel TreeTableModelAdapter category directly from the TreeModel and AbstractTableModel succession that's why the code greatly reduced. 2, a TreetableUserClass abstract category, the category devoted to the memory of our own data. Built - recursive algorithm and line conversion methods to make an
Platform: |
Size: 33940 |
Author: 李振华 |
Hits:
Description: A new interface, extending the TreeModel interface, which describes the kind of data that can be drawn by a TreeTable.
-A new interface, extending the TreeModel interface, which describes the kind of data that can be draw n by a TreeTable.
Platform: |
Size: 1807 |
Author: 黄加斌 |
Hits:
Description: A new interface, extending the TreeModel interface, which describes the kind of data that can be drawn by a TreeTable.
-A new interface, extending the TreeModel interface, which describes the kind of data that can be draw n by a TreeTable.
Platform: |
Size: 2048 |
Author: 黄加斌 |
Hits:
Description: Qt中TreeModel的实现,为QTreeView提供Model的-Qt in the TreeModel implementation, in order to provide Model of QTreeView
Platform: |
Size: 4096 |
Author: yxb |
Hits:
Description: Provides a simple tree model to show how to create and use hierarchical models for Linux.
Platform: |
Size: 2048 |
Author: moyaohin |
Hits:
Description: 利用Qt的model-view框架自定义树(Customizing a tree with the Model-View framework of Qt)
Platform: |
Size: 2573312 |
Author: 和你一样_
|
Hits: