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

Creating bottom navigation tabs

Tabs are usually displayed at the top of the tab panel, however sometimes we might want to use a different tab position. GXT supports two different tab positions: top and bottom. In this recipe, we will show you how to create bottom navigation tabs.

Creating bottom navigation tabs

How to do it...

It turns out that this is achieved with just a single line of code...ok, not really!

The following code will create the bottom navigation tab:

TabPanel tabPanel = new TabPanel(); tabPanel.setHeight(450); tabPanel.setCloseContextMenu(true); // the magic line tabPanel.setTabPosition(TabPanel.TabPosition.BOTTOM); for(int i = 1; i <= 5; ++i){ TabItem aTab = new ...

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