I don't think there's anything wrong with using <img> as that is what
GWT's image turns into at its core except for some weird hacks in IE
(that are not really necessary, it seems, if you're using IE 7/8), but
if there's anything that might not be cross-browser about your image,
like opacity or clipping it from an ImageBundle, then you should stick
with Image. You can use HTMLPanel to get the result you want.
HTMLPanel panel = new HTMLPanel("blah blah text <div id='img_1'></div>
blah blah text <div id='img_2'></div> blah blah text");
panel.addAndReplaceElement(image1, "img_1");
panel.addAndReplaceElement(image2, "img_2");
HTMLPanel lets you swap in widgets for placeholders, so that you can
have a sequence of ordinary HTML with usable widgets spliced in.
Blake
On Jul 11, 9:09 pm, Nathan <[email protected]> wrote:
> Hey again everyone. Another question, in the hopes of a nice
> answer...
>
> I'd like to do basic "I have a column of text, and I would like to
> add an image to it and have the text wrap around the image." I can do
> this easily by just doing:
> HTML = new HTML("blah blah text <img .... align=right> blah blah text
> <img ... align=left> blah blah text");
>
> But using HTML image tags seems...wrong to me? I feel like I should
> be able to say "here's some text" "here's an image" "here's some more
> text" and have it look right.
>
> Does this exist, and I just can't find it? Or is this beyond the
> GWT abilities at this point?
>
> Thanks,
>
> -nathan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---