Then I suggest you just keep a Label for the text on the tab bar, keep it when done with adding it to the tab bar. So you can change the label's text on the user's actions. Hope it helps.
On Sat, Feb 14, 2009 at 9:27 PM, GWTFan <[email protected]> wrote: > > Yes that is what I do. I use TabPanel.add(widget, widget). My tab text > is a horizontal panel with text and an icon for close. > > But in our application after the tab is displayed, based on user > action the tab text should change. > > My tab text is a widget. How do I change the widget. I could not find > a method in the tabbar for it. > > Thanks, > Mukund > > On Feb 14, 5:32 am, Behrooz Nobakht <[email protected]> wrote: >> I believe you should use the TabPanel.addWidget(panelWidget, tabWidget) >> method >> of TabPanel. >> >> On Sat, Feb 14, 2009 at 8:58 AM, GWTFan <[email protected]> wrote: >> >> > We need closable tab panel. I'm using TabPanel's add(widget, widget) >> > method to add tabs. I'm using an horizontalpanel as tab heading, with >> > a text and an icon with clicklistener for closing. >> >> > This Works well. >> >> > However, based on user action on the widget within the tab, I need to >> > change the tab text. >> > While adding the tab, I could pass a widget for the tab text with >> > closable option. But TabBar.setTabText() does not allow widgets. How >> > do I get the widget in the tabheader and change the text? >> >> > Any suggestions. >> >> > Thanks, > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
