to clarify, the Image is coming from ImageSource in ClientBundle.
public interface Resources extends ClientBundle {
@Source("icon.png")
ImageResource icon();
}
then in Java code backing UiBinder
Resources res;
Image image = new Image(res.icon());
On Jan 16, 11:30 am, zixzigma <[email protected]> wrote:
> Thank You,
> do you know if its possible to use GWT Image type with your
> approach ?
> in other words, the image itself is not coming from a URL, it is a GWT
> Image
> object.http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> On Jan 16, 6:03 am, ailinykh <[email protected]> wrote:
>
> > This is what I do
>
> > @UiField
> > Hyperlink imageLink;
>
> > ...
> > String imgStr="<img src='"+url+"'/>";
> > imageLink.setHTML(imgStr);
>
> > Andrey
>
> > On Jan 15, 4:25 pm, zixzigma <[email protected]> wrote:
>
> > > g:InlineHyperLink, g:HyperLink and g:Anchor cannot contain an element
> > > if I'm correct.
>
> > > do you know how we can then wrap an image inside a hyperlink,
> > > other than the approach below?
>
> > > <g:HTMLPanel>
> > > <a href="#mail/starred">
> > > Home
> > > <g:Image resource="{res.homeIcon}" />
> > > </a>
> > > </g:HTMLPanel>
--
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.