小智 2
我会研究 TreeModel 类的侧面示例。
我曾经这样做过:
tree := TreeModel new.
tree openWithSpec.
tree columns: (Array
with: (TreeColumnModel new displayBlock: [:node | node content first asString ]; headerLabel: 'Name'; yourself)
with: (TreeColumnModel new displayBlock: [:node | node content second asString ]; headerLabel: 'Last Name'; yourself)
with: (TreeColumnModel new displayBlock: [:node | node content third asString ]; headerLabel: 'Age'; yourself)
with: (TreeColumnModel new displayBlock: [:node | node content fourth asString ]; headerLabel: 'Gender'; yourself)).
Run Code Online (Sandbox Code Playgroud)
然后设置树根。
你是Pharo 3还是Pharo 2?这适用于 Pharo 3。
| 归档时间: |
|
| 查看次数: |
629 次 |
| 最近记录: |