On Dec 27, 7:47 am, ALB-PSP-DV1 <albpsp...@gmail.com> wrote:
> Hi,
>
> I have a TabLayoutPanel with 3 tabs. I have added a selection handler
> to it to change the color of the selected/unselected tabs.
>
> However the selectionHandler seems to be invoked 3 times instead of
> once when I select a tab.
>
> i.e. SelectionHandler invocation = Total number of tabs in
> TabLayoutPanel
>
> @UiField
> TabLayoutPanel fareDisplayPanel;
>
> fareDisplayPanel.addSelectionHandler(new SelectionHandler<Integer>() {
> @Override
> public void onSelection(final SelectionEvent<Integer> event)
> {
> ---------- code for styling selected/unselected
> tabs----------
> }
>
> });
>
> Can someone please point out the mistake that I'm doing. Thanks in
> advance.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment