سؤال

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