Multi select combo box feature in gxt

How can I actually create a multi select combo box featuring gxt gwt only. If this how the combo box is created, then how to create multi select combo box?

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/64414.html

上一篇: 在GXT4.0中,Gxt组合框选择箭头未正确对齐

下一篇: gxt中的多选组合框功能