In Uibinder specify your image on src attribute of ui:image tag,
Inside the ui:style attribute specify your @sprite.backgroundPicture
tag. Try the below example.
S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine
?xml version=1.0 encoding=UTF-8?
ui:UiBinder
Hi,
I have a Layout Panel and I would like a background image.
How can I do that? And how can I make it repeat, horizontally and
vertically?
I found that a LayoutPanel does not have a getElement/getStyle method.
So how can I access the element style or how can I realize the background?
Thanks
Use @sprite to set the background image and use the image settings in
de ClientBundle to define the h/v repeat.
See: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html
- Ed
On Oct 28, 6:33 pm, Magnus alpineblas...@googlemail.com wrote:
Hi,
I have a Layout Panel and I would
Hi,
Try myLayoutPanel.setStyleName(my-layout-style). And then in the css
add the rule
.my-layout-style { background-image:...}.It will repeat by default,
unless you set background-repeat:no-repeat.
I think this would work.
On 28 Οκτ, 20:02, Ed post2edb...@gmail.com wrote:
Use @sprite to set