Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between TabPanel and TabLayoutPanel in GWT

Tags:

java

gwt

What's the difference between TabPanel and TabLayoutPanel in GWT? I can't find the answer in Google and it is difficult to understand reading docs

like image 376
Anton Kasianchuk Avatar asked Nov 30 '22 13:11

Anton Kasianchuk


1 Answers

TabLayoutPanel is a layout panel: it's sized from the outside-in, it has to be given explicit dimensions and be notified when they changed (RequiresResize), and similarly will resize its children and notify them when it does so (ProvidesResize).

TabPanel is not; it's sized from the inside-out: it'll resize itself depending on the size of the widget in the selected tab.

like image 142
Thomas Broyer Avatar answered Dec 04 '22 16:12

Thomas Broyer