GWT 中是否有任何小部件可以将 XML 文件显示为可展开/可折叠的树?

发布于 2024-09-18 03:15:04 字数 132 浏览 3 评论 0 原文

是否有任何 GWT 或 GXT(或其他库)小部件可以将 XML 文件的内容显示为树?

XML 文档的每个节点都是一个树节点,用户可以通过单击节点来展开/折叠节点。

语法突出显示也是可取的,但这是我愿意没有的额外功能。

Is there any GWT or GXT (or other library) widget that displays the contents of an XML file as a tree?

Each node of the XML document would be a tree node and the user could expand/collapse the nodes by clicking on them.

Syntax highlighting is also desirable, but that's an extra that I'm willing to live without.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蹲在坟头点根烟 2024-09-25 03:15:04

您可以查看 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文