0

我正在研究 Java、SmartGWT 2.5 和 Mozilla FF 3.6.x。我在我的应用程序中使用Tree, TreeGrid& TreeNode。我的问题是:我想将不同的样式TreeNode应用于TreeNode. 状态为:已启用、已选择、结束(鼠标悬停)。我怎样才能做到这一点?

提前致谢。

4

1 回答 1

1

覆盖 getBaseStyle() 或 getCellCSSText()。这里有一个例子:

http://www.smartclient.com/smartgwt/showcase/#grid_appearance_hilite_add

http://www.smartclient.com/smartgwt/showcase/#grid_appearance_hilite_replace

同样的 API 也适用于 TreeGrid,因为 ListGrid 是它的超类。这些方法的“记录”参数是您的 TreeNode。

于 2011-12-10T01:00:18.527 回答