复选框节点渲染器和编辑器
我渲染了一棵有两种节点的树。
- 叶节点
- 父节点
1 - 代表父节点。 二、三——代表叶节点。
我需要编写两个单独的编辑器吗? 一个用于父节点,一个用于叶节点?
我可以完成这个吗?
如何编写一个新的渲染器来渲染两种不同类型的节点?以及他们相应的编辑器?
I have rendered a tree with two kind of nodes .
- Leaf Nodes
- Parent Nodes
One - represents a parent node .
Two, Three - Represents leaf nodes .
And do i need to write two separate editors ?
One for the parent nodes and one for the leaf nodes ?
Hoa can i accomplish this ?
How do i write a new renderer for rendering two different kind of nodes ? And the corresponding Editor for them ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需创建两个单独的
TreeCellEditor
实现并将它们与类合并在一起,如下所示:Just create two separate
TreeCellEditor
implementation and merge them together with the class like this: