Duplicate the <g: tab> element in the GWT TabLayoutPanel
I found the GWT tab bars awkward for the style I needed to make, so I'm trying to create my own, simple tab bar. Mostly an HTML5 element <nav>for tabs and DeckPanelfor displaying content. Let everyone else use CSS3.
The GWT TabLayoutPanel has these special tags that it uses to determine the contents of a tab:
<g:TabLayoutPanel>
<g:tab>
<g:header>Tab Title</g:header>
<g:OtherWidget>Tab contents</g:OtherWidget>
</g:tab>
</g:TabLayoutPanel>
I mean <g:tab>and <g:header>. I see these tags used in different places, but I have no idea how to create them. Looking at the source of the TabLayoutPanel, I see that it has a method addthat expects two widgets, and from it it puts one widget (content) in the panel to display, and the other (title) in the TabLayoutPanel.Tab instance, but I donβt know how duplicate such functionality.