I am not understanding how to add a webpage inside the tabbed panel so that when I select a tab the webpage should display in there. I am trying to use UiBinder in GWT.
I have 3 pages Page1.java, Page2.java and Page2.ui.xml.
Page1.java contains a TabPanel with 3 tab indexes, so on the index(0) of the tabPanel I want Page2.java to be displayed.
Any help appreciated. Thanks!
I am not understanding how to add a webpage inside the tabbed panel so
Share
You just
addwidgets to theTabPanelin order of the tabs. So if you want to have the widget from Page2.java (which I am assuming is aCompositewidget) to be displayed in theTabPanelwith, say, a tab text of “Page 2” you would do the following (in Page1.java):For more details and examples I recommend you read the documentation on the TabPanel.
It’s also worth mentioning from the documentation:
So if your host page declaration looks like this:
<!DOCTYPE html>which means you are in Standards Mode, you should be using the TabLayoutPanel widget.