Here is a code snippet showing how to use an image from an GWT imagebundle as a background image.
1 2 3 4 5 6 | // BUNDLE is my image bundle... Image image = BUNDLE.myImage().createImage(); String backgroundImage = DOM.getElementAttribute(image.getElement(), "style"); DOM.setElementAttribute(el, "style", backgroundImage); |
