sách gpt4 ăn đã đi

java - Vaadin Sampler 中的 `ComponentRenderer` 是什么类?

In lại Tác giả: Walker 123 更新时间:2023-11-30 10:31:54 28 4
mua khóa gpt4 giày nike

hiện hữuthis demo Sampler of the Grid widget ,源代码选项卡显示调用名为 ComponentRenderer 的类的代码。

Map countryRatings = new HashMap<>();
Grid countryGrid = new Grid(
"Rate your favorite Countries");
countryGrid.setItems(countries);

countryGrid.addColumn(country -> new Label(country.getFullName()),
new ComponentRenderer()).setCaption("Name");
countryGrid.addColumn(country -> {
RatingStars ratingStars = new RatingStars();
ratingStars.setMaxValue(5);
ratingStars.setValue(countryRatings.containsKey(country)
? countryRatings.get(country) : 0.0d);
ratingStars.addValueChangeListener(
event -> countryRatings.put(country, event.getValue()));
return ratingStars;
}, new ComponentRenderer()).setCaption("Rating");

我找不到 Vaadin 8.0.3 API JavaDoc 中列出的此类.那么这个演示代码中使用的是什么类?

câu trả lời hay nhất

这是 Vaadin 8.1 中即将推出的一项功能。目前,如果您从 https://vaadin.com/releases 查看 alpha 版本,就可以使用它。

关于java - Vaadin Sampler 中的 `ComponentRenderer` 是什么类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42946180/

28 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress