Monday, October 31, 2011

Re: TabLayoutPanel,how to catch the mouse click event on tab

You can use either of the BeforeSelectionHandler or SelectionHandler
for the TabLayoutPanel. If you want to perform your operation after
the tab is clicked use the latter


public void onMyTabClick(SelectionEvent<Integer> event) {

int item = event.getSelectedItem();

//note item holds the tab id. now compare this against the tab's you
have, index starts from zero.

switch(item) {
case tab1 :
case tab2:



On Monday 31 October 2011 12:03:13 PM IST, wahaha wrote:
> there is a TabLayoutPanel instance,i want to alert something while i
> clicked on the tab button.
> how to implement this?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment