I think that there are no method to do this, at the moment.
what you can have, is the html of the tab
with tabPanel.getTabBar().getTabHTML()
but this is not what you want...

Or you can make the greedy solution.

you rewrite your own TabPanel, starting from this:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/TabPanel.java

in this class there are object from the class TabBar... you have to
rewrite the TabBar class, starting from this:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/TabBar.java


rewrite the method " protected void insertTabWidget(Widget widget, int
beforeIndex)"


and add the widget to an ArrayList , for example...

then implement a new method..."public Widget getTabWidget(int index)"

and return the widget from the arrayList




good work :P








On 20 Giu, 01:47, Bonor <[email protected]> wrote:
> tabPanel.add( panelA, panelB);
>
> How do I get de widget panelB?
>
> tabPanel.getWidget(0) returns panelA, so how about panelB?
--~--~---------~--~----~------------~-------~--~----~
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