gwt cellbrowser [选择节点] 与 [打开节点]
我正在使用 gwt cellbrowser,到目前为止,这是一场艰苦的战斗。我有一种不好的感觉,我没有按照它的预期使用它。
在我看来:
- 选择一个节点和打开该节点之间是有区别的。
- 无法以编程方式打开/关闭节点。
- cellbrowser 的打开/关闭处理程序永远不会触发(尽管单击节点会在下一个面板中呈现该节点的子节点)。
我可以使用选择模型来选择一个节点,但这不会打开该节点。换句话说,该节点的孩子们不会出现(直到我单击节点)。
编程方式打开和关闭节点吗?
我可以通过
I'm using the gwt cellbrowser, so far it has been an uphill battle. I got this bad feeling that I'm not using it as it is intended to be used.
It seems to me that:
- there is a difference between selecting a node and opening that node.
- there is no way to open/close nodes programatically.
- the cellbrowser's open/close handlers never fire (although clicking on a node renders that node's children in the next panel.
I'm able to use the selectionModel to select a node but that doesn't open the node. In other words, the node's children don't show up (until I click on the node).
Is there anyway, I can open and close nodes programatically?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我希望这有帮助。第一次帮助但长期用户。 :)
在
TreeNode
类中,有几个有用的方法,例如getChildValue(int index)
、getChildCount()
...I hope this helps. First time helping but long time user. :)
In the
TreeNode
class there are several helpful methods, like,getChildValue(int index)
,getChildCount()
...