Hi Yefim,

Annoyingly StackPanel does not take a widget for a stack header. If
you write some HTML like:

            buf.append("<TABLE class=theme-stack-header> <TR
VALIGN=TOP> <TD WIDTH=50%> <P ALIGN=LEFT><B>")
               .append(relation)
               .append("</B></P> </TD> <TD WIDTH=50%> <P ALIGN=RIGHT>
(<I>")
               .append(Integer.toString(num))
               .append(" Terms</I>)</P> </TD> </TR> </TABLE>");
            return buf.toString();

you can use the

void    add(Widget w, java.lang.String stackText, boolean asHTML)

option setting asHTML to true.

I've not done this with Images, but I think it will probably work if
you fetch the images individually from the server via url. I can't
however see how to do this using images from an ImageBundle because
myAbstractImageType.createImage() is not a string. There may be a way
to get the browser to cache images fetched via ImageBundle so they are
locally accessible via a url, I don't know.

regards
gregor

On Nov 5, 1:48 pm, Yefim <[EMAIL PROTECTED]> wrote:
> Hi I want to have an image+ text header for stackPanel and do exactly
> as it is done in getHeaderString() method in CwStackPanel sample. What
> I see on the screen is a chank of HTML (even if I do not include an
> image):
> <TABLE cellSpacing=0 cellPadding=0><TBODY><TR>
> <TD style="VERTICAL-ALIGN: middle" align=left>
> <DIV class=gwt-HTML>This should be my stackPanel header</DIV></TD></
> TR></TBODY></TABLE>
>
> Where should I look?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to