Reviewers: ecc,

Description:
Description:
============
TabBar.insertTab(text) adds a Label with wordWrap set to false.
TabBar.setTabText(text) adds a Label without setting wordWrap (defaults
to true).  Also, there is no way to change wordWrap programatically on a
tab.


Fix:
====
TabBar.setTabText(text) now sets wordWrap to false.  TabBar.Tab now
implements HasWordWrap, which allows users to set wordWrap on the
underlying widget.  If the underlying widget doesn't implement
HasWordWrap, an UnsupportedOperationException is thrown.  Users can
check this using TabBar.Tab.hasWordWrap().


Testing:
========
Manually verified in hosted mode and added a JUnit test.

Please review this at http://gwt-code-reviews.appspot.com/604

Affected files:
   user/src/com/google/gwt/user/client/ui/TabBar.java
   user/test/com/google/gwt/user/client/ui/TabBarTest.java



--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to