I would create a widget by extending Composite and wrapping a native
Image and Label :
public class ImageLabel extends Composite {
@UiConstructor
public ImageLabel(String url, String text) {
Image image = new Image(url);
Label label = new Label(text);
HorizontalPanel panel = new HorizontalPanel();
panel.add(image);
panel.add(label);
initWidget(panel);
}
}
Hope this helps !
On 22 mar, 20:01, Ralf B <[email protected]> wrote:
> Is there a very very simple way to create a label with an image
> without using CSS, or is the only way to use HTML objects? I was
> hoping for a constructor like this:
>
> Image myImage = new Image(url);
> Label myLabel = new Label(myimage, "This is the text");
>
> Best Regards :)
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.