GWT 中是否有任何小部件可以将 XML 文件显示为可展开/可折叠的树?
是否有任何 GWT 或 GXT(或其他库)小部件可以将 XML 文件的内容显示为树?
XML 文档的每个节点都是一个树节点,用户可以通过单击节点来展开/折叠节点。
语法突出显示也是可取的,但这是我愿意没有的额外功能。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以查看 ext gwt,
asyncXmlTree 可能就是您正在寻找的。
//编辑//
回复您的评论:
我现在知道您在寻找什么。我不知道这是否存在,但是调整 asyncXmlTree 的代码应该不会太困难。
如果您查看示例的源代码,您会发现数据是由 数据读取器。您可以实现自己的,它不仅返回内容,还返回 xml 标签。您可以查看 XmlReader 的代码作为示例。
You might take a look at ext gwt,
the asyncXmlTree might be what you are looking for.
//EDIT//
In reply to your comment:
I know now what you are looking for. I don't know if this exists, but it shouldn't be to difficult to adapt the code of the asyncXmlTree.
If you look at the sourcecode of the example, you see that the data is returned by a DataReader. You can implement your own that returns not only the content, but also the xml tags. You could look at the code of the XmlReader for an example.