GWT SuggestBox + ListBox 小部件 [英] GWT SuggestBox + ListBox Widget

查看:30
本文介绍了GWT SuggestBox + ListBox 小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个可以为我提供建议的列表框.我需要实现的确切内容是我们在其中输入网站地址的浏览器导航小部件.实现的功能是这样的

I would like to create a List Box which can provide me suggestions.The exact thing which i need to implement is the browsers navigation widget where we type in the website address.The functionality to implement is like this

当我们点击向下箭头时,我的列表框应该为我提供以前导航过的 URL 列表.此外,当我们继续输入内容时,小部件应该为我提供建议.

when we click on the down arrow ,my list box should provide me the list of previously navigated URLS. Also when we go ahead and type something,the widget should provide me suggestions.

关于如何实现这个小部件的任何建议都会非常棒.

Any suggestions on how to implement this widget would be really great.

谢谢

推荐答案

我的 SimpleGWT 项目的 ComboBox 小部件应该与您描述的非常接近.但是,我要警告您,它是几年前编写的,并没有与最新的 GWT 版本保持同步.此外,它需要对 SuggestBox 类进行一些更改才能打开我需要的 API.考虑到所有这些,它是 Apache 2 许可的开源,因此即使您不能按原样使用它,它仍然对您实现自己的解决方案有用.欢迎在项目网站上提供反馈.

My SimpleGWT project's ComboBox widget should be very close to what you describe. However, I would warn you that it was written a couple of years back and hasn't been kept up to date with the latest GWT version. Also, it required a few changes to the SuggestBox class to open up the API that I need. With all that in mind, it is Apache 2 licensed Open Source so it should still be useful to you in implementing your own solution even if you can't use it as it is. Feedback is welcome on the project site.

这篇关于GWT SuggestBox + ListBox 小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆