How to define TabPanel in UiBinder in GWT. What's difference between TabPanel and TabLayoutPanel. Where to find additional info about TabPanel uibinder parameters.
Asked
Active
Viewed 4,723 times
2 Answers
9
Sample:
<g:TabPanel ui:field="mainTab">
<g:Tab text="Header #1">
<g:FlowPanel ui:field="tabPanel1"/>
</g:Tab>
<g:Tab text="Header #2">
<g:FlowPanel ui:field="tabPanel2"/>
</g:Tab>
</g:TabPanel>
There are two main differents in TabPanel and TabLayoutPanel:
- TabLayoutPanel requires ProvidesResize container, TabPanel have no additional requirements
- TabPanel translates to simple html table, TabLayoutPanel translates to pack of divs with relativly complex layout.
You can find more info about TabPanel in TabPanelParser class.

Pavel
- 2,557
- 1
- 23
- 19
0
Take a look at this for the difference between TabPanel and TabLayoutPanel

Community
- 1
- 1

Kirill Gamazkov
- 3,277
- 1
- 18
- 22