O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Showing a tab strip for only two or more tabs

The tab strip is the portion of a tab panel where the tab titles or headers used for navigation are placed. It also plays host to the left-hand side and right-hand side scroll buttons on an instance of TabPanel class that is configured to allow scrolling on the tab strip. Sometimes, I find it counterintuitive and visually displeasing to have an instance of TabPanel class with only one TabItem object in it, yet the header of that single TabItem is still displayed.

It would be really cool to have an instance of TabPanel class that can be configured to only show the tab strip and — by proxy — its contained tab headers and scroll buttons, if and only if we have two or more tabs. After all, it's only then ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required