As part of the lazy loading strategy, when an organizational TreeItem widget is created, you don't have the data to create all of its child widgets.
按照惰性装载策略,在创建组织TreeIte m部件时,还没有创建所有子部件所需的数据。
This widget is a simple composite that allows its child to be shown or hidden (i.e., collapsed or expanded).
这个小部件是一个简单的复合程序,允许显示或隐藏(即,折叠或展开)其子元素。
To work around this limitation, I created a dummy child TreeItem widget and set it to be invisible (lines 39, 40).
为了解决这个问题,我创建了一个假的子 TreeItem 部件并把它设置为不可见(第 39、40 行)。
应用推荐