當使用Tree/Table來顯示大數據集的時候,如果使用VIRTUAL Table或者VIRTUAL Tree,可以明顯的降低計算時間,提高顯示速度。 Virtual?Table/Tree并不是SWT里面的新特性,但是卻沒有詳細的文檔可以參考。?Eclipse.org上最新發表了一篇文章來介紹這個特性:
Virtual Tables and Trees allow developers to quickly create Tables and Trees with large amounts of data and populate them efficiently. This article is an overview of how to use virtual Tables and Trees within SWT applications.
http://www.eclipse.org/articles/Article-SWT-Virtual/Virtual-in-SWT.html