I have a list of say 5 images (imageresources) that i want to add to a panel without having to declare five separate <img> tags in my ui.xml. Is this possible?

有帮助吗?

解决方案

@uifield yourpanel panel

And you directly add images to that panel.

for (int i = 0; i < images.length; i++){

Image image =new Image(url);

 .....
...
Panel.add(image);
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top