mouse over tab (TabLayoutPanel) to select

43 views
Skip to first unread message

Weihua

unread,
May 7, 2013, 1:12:11 AM5/7/13
to google-we...@googlegroups.com
Dear GWTers,

Is it possible to mouseover a tab of TabLayoutPanel to select it?

Thank you very much!!!

Weihua

Patrick Tucker

unread,
May 7, 2013, 1:41:51 PM5/7/13
to google-we...@googlegroups.com
You mean instead of clicking? There is no reason you couldn't add that capability. It is not out of the box though.

Chen Weihua

unread,
May 7, 2013, 1:51:49 PM5/7/13
to google-we...@googlegroups.com
Yes I meant mouseover instead of clicking. Can you provide some example codes?

Thank you very much.


On Tue, May 7, 2013 at 7:41 PM, Patrick Tucker <tuck...@gmail.com> wrote:
You mean instead of clicking?  There is no reason you couldn't add that capability.  It is not out of the box though.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/Pks49qkijSo/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Patrick Tucker

unread,
May 8, 2013, 10:55:04 AM5/8/13
to google-we...@googlegroups.com
Instead of using add(Widget, String) to add tabs use add(Widget,Widget).  Your second argument will be a widget that you have added a mouse over handler to that will instruct the TabLayoutPanel to select the appropriate tab by calling selectTab(int) or selectTab(Widget).

Chen Weihua

unread,
May 8, 2013, 11:08:10 AM5/8/13
to google-we...@googlegroups.com
Thank you very much. how to do it in UIBinder then??

Weihua


--

Jens

unread,
May 8, 2013, 11:21:10 AM5/8/13
to google-we...@googlegroups.com


Am Mittwoch, 8. Mai 2013 17:08:10 UTC+2 schrieb Weihua:
Thank you very much. how to do it in UIBinder then??

Instead of <g:header>text</g:header> you would use <g:customheader><my:Widget /></g:customheader>

-- J. 

Chen Weihua

unread,
May 8, 2013, 11:37:05 AM5/8/13
to google-we...@googlegroups.com
thank you very much!!


--
Reply all
Reply to author
Forward
0 new messages