Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ExtJS 有类似的问题,但 GXT 没有。
我希望简单地将 onclick 处理程序添加到 GXT 中的 TreePanel。也就是说,我希望在用户单击树中的节点时执行操作。展示柜似乎没有涵盖这个最基本的用例。
谢谢,
看来求救过早了。
这似乎可以解决问题:
treePanel.addListener(Events.OnClick, new Listener<TreePanelEvent<ModelData>>() { public void handleEvent(TreePanelEvent<ModelData> be) { // do something here }; });