// Create a tab panel
DecoratedTabPanel tabPanel = new DecoratedTabPanel();
tabPanel.setWidth("400px");
tabPanel.setAnimationEnabled(true);
// Add a home tab
HTML homeText = new HTML("home blabla");
tabPanel.add(homeText, "home");
// Add button
Button normalButton = new Button(
"add", new ClickHandler() {
public void onClick(ClickEvent event) {
// you might want to add fields for text and tabname
tabPanel.add(text, tabName);
}
});
I did not test it but I think this should work.
Best Regards,
Fendy Tjin
On Fri, Oct 15, 2010 at 3:56 PM, Christophe <
[email protected]> wrote:
> I would like to add an icon/button to tab bar, at the right of the
> last tab, like Firefox does.
>
> But, in TabLayoutPanel, tabBar is private with no accessor, and I
> can't find a way to add this.
>
> Any suggestion ?
>
> Regards,
> Crhistophe
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
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.