如何使用EXT-GWT组合框 [英] How to use EXT-GWT ComboBox

查看:100
本文介绍了如何使用EXT-GWT组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用静态数据在 EXT-GWT 中使用ComboBox。
例如,我只想硬编码(用于演示目的)First Names列表并将其显示给用户。
我不想使用它们在样本中使用的任何虚拟对象。我在哪里可以找到简单的字符串示例?

How do I use ComboBox in EXT-GWT with static data. For example I just want to hard code (for demo purposes) list of First Names and display it to the user. I don't want to use any dummy objects that they are using in their samples. Where can I find simple example with Strings?

推荐答案

以下是我在项目中使用的代码:

Here is the code I use in my project:

SimpleComboBox combo = new SimpleComboBox();
combo.add("One");
combo.add("Two");
combo.add("Three");
combo.setSimpleValue("Two");

这篇关于如何使用EXT-GWT组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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