Hmm... let me see... is something like this at all a right approach? :]

public class Test implements EntryPoint {

    public final void onModuleLoad() {
        TabLayoutPanel mainTabs = new TabLayoutPanel(40, Style.Unit.PX);
        mainTabs.add(new HTML("Page A"), new MyTab("images/a.jpg", "Tab
A"));
        mainTabs.add(new HTML("Page B"), new MyTab("images/b.jpg", "Tab
B"));
        RootLayoutPanel.get().add(mainTabs);
    }

    class MyTab extends HTML {
        public MyTab(String icon, String text) {
            super("<div style='background-image: url(" + icon + ");'> " +
text + "</div>");
        }
    }
}
--
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