Friday, July 25, 2014

How to get the Total of current tabs in TabLayoutPanel?

We have tabLayoutPanel.selectTab(1) to select the the 2nd tab of the tabLayoutPanel However, we need to make sure that the tabLayoutPanel must currently have 2 tabs otherwise it will have "out of bound" error.

And if it has "out of bound" error & the rest of the code will not be implemented.

But there is no getTotalTabs method in tabLayoutPanel

do we need to get the Tab header and found the total tabs from the tab header? How to fix it?

http://stackoverflow.com/questions/24967240/how-to-get-the-total-of-current-tabs-in-tablayoutpanel

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment