gxt中的多选组合框功能

我怎样才能真正创建一个只有gxt gwt的多选组合框。 如果这是如何创建组合框,那么如何创建多选组合框?

idStore = new ListStore<Category>(new ModelKeyProvider<Category>() {

            @Override
            public String getKey(Category item) {
                return item.getIdcategory() + "";
            }
        });
        idStore.addAll(list);

        cmbCat = new ComboBox<Category>(idStore, new LabelProvider<Category>() {

            @Override
            public String getLabel(Category item) {
                return item.getStrName();
            }
        });

        cmbCat.addValueChangeHandler(new ValueChangeHandler<Category>() {

            @Override
            public void onValueChange(ValueChangeEvent<Category> event) {
                catId = event.getValue().getIdcategory();
            }
        });

        cmbCat.setValue(idStore.get(0));
        cmbCat.setAllowBlank(false);
        cmbCat.setForceSelection(true);
        cmbCat.setTypeAhead(true);
        cmbCat.setTriggerAction(ComboBoxCell.TriggerAction.ALL);
链接地址: http://www.djcxy.com/p/64413.html

上一篇: Multi select combo box feature in gxt

下一篇: GXT TabPanel bug in firefox