selected Tab click event

Hi, is there any way to get event about clicking on the already selected Tab?
I need it to refresh Tab’s component content ( i don’t want make it with additional ‘refresh’ Button).

Hi,

The SelectedTabChangeListeners are not triggered if the user selects the currently open tab, so you should not run in to this problem as long as you refresh your tabs in a SelectedTabChangeListener.

HTH,
/Jonatan

Thank you for the answer. But, I should be more clear, I actually need some way to know that the user have clicked on the already selected Tab ( if that is so, app must refresh content of the selected Tab ).

Hi,

To do this you need to extend TabSheet and override setSelectedTab(Component). There you can handle your special case of the same tab being selected.

HTH,
/Jonatan

Thanks again.
Done, but setSelectedTab(Component) is not called in response to clicking on the already selected Tab.
Seems like Tab is a bit inferior and could not react when there is a click on it.
The TabSheet is a master ( and do its job well in case selected Tab changes ).