Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vaadin ListSelect中的setFilteringMode_Vaadin_Vaadin7 - Fatal编程技术网

Vaadin ListSelect中的setFilteringMode

Vaadin ListSelect中的setFilteringMode,vaadin,vaadin7,Vaadin,Vaadin7,我能用它吗?我根本就没办法这么做。由于我不支持这一方法,我非常感激。我不认为和你有太多的不同。因此,如果我想在中使用,我该如何解决呢?作为一种可能的解决方案,您可以在ListSelect下面创建一个textfield,并使用可过滤容器()作为ListSelect的数据源,并应用容器过滤器,例如在该textfield中的每个“return”上,甚至在每个文本更改事件上 IndexedContainer c = new IndexedContainer(); listSelect.s

我能用它吗?我根本就没办法这么做。由于我不支持这一方法,我非常感激。我不认为和你有太多的不同。因此,如果我想在中使用,我该如何解决呢?

作为一种可能的解决方案,您可以在ListSelect下面创建一个textfield,并使用可过滤容器()作为ListSelect的数据源,并应用容器过滤器,例如在该textfield中的每个“return”上,甚至在每个文本更改事件上

    IndexedContainer c = new IndexedContainer();
    listSelect.setContainerDataSource(c);
    Filter filter = new SimpleStringFilter("name", "Douglas", true, false);
    c.addContainerFilter(filter);
查看

作为FilteringMode集合,用户将如何在下拉列表(组合框)中查找项目,我看不出将此应用于列表选择的意义,因为根本没有可用的搜索。