本文介绍了使用actionListeners的多个选择列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要实现以下目标:


  • 应该可以创建条目,并且这些条目(字符串)应该显示为列表。只需单击一次即可选择列表条目(每个条目具有侦听器方法),而无需按住任何键盘按钮。另外,单击已选择的条目也应取消选择它。

  • It should be possible to create entries, and these entries (Strings) should be displayed as a list. A list entry should be selectable (with listener method on each entry) by a single click, without holding any keyboard buttons. Also clicking an already selected entry should deselect it.

此外,条目还应具有一个维,该维将指定子条目的数量。这些应该在输入之前通过某种展开按钮可见。同样,子条目也应该是可以选择的。

Also, an entry should get a dimension, which will specify the number of subentries. These should be visible by some kind of expand button before the entry. Again, subentries should also be multiple selectable.

是否已经有提供此功能的组件?如果没有,我应该考虑构建一个这样的组件吗?

Are there components that already provide such a feature? If not, what should I look into to build such a component?

推荐答案

我现在找到了GWT Tree Cell组件:

I found the GWT Tree Cell component by now:http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCellTree

这篇关于使用actionListeners的多个选择列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 17:22