Hello all,

Is it possible to get a handle on a particular cell in a
HorizontalPanel?  I want to use a style sheet to set the background on
the cell that contains the logo image.  I'm starting to feel like "you
can't get there from here"  Is there some other way to approach the
problem?  Why isn't there a "setCellStyleName" or similar method?

    HorizontalPanel bannerPanel = new HorizontalPanel();
    bannerPanel.addStyleName("bannerPanel");
    Image logo = new Image("images/Logo220x57.png");
    bannerPanel.add(logo);
    // TODO figure out how to attach a style to the IMMEDIATE parent
    logo.getParent().addStyleName("bannerLogo") ;  // This doesn't
work.  It attaches the style to the whole <table>
    bannerPanel.setCellWidth(logo, "220px");


Thanks,
Eric

--

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