I'm adding the selection handler to the TabLayoutPanel.
fareDisplayPanel.addSelectionHandler(new SelectionHandler<Integer>()
{ }
On Dec 28, 8:56 am, Patrick Tucker <
tucker...@gmail.com> wrote:
> Where are you adding theSelectionHandler?
> > I have aTabLayoutPanel with 3 tabs. I have added a selection handler
> > to it to change the color of the selected/unselected tabs.
>
> > However theselectionHandlerseems to beinvoked3timesinstead of
> > once when I select a tab.
>
> > i.e.SelectionHandlerinvocation = Total number of tabs in
> >TabLayoutPanel
>
> > @UiField
> >TabLayoutPanelfareDisplayPanel;
>
> > fareDisplayPanel.addSelectionHandler(newSelectionHandler<Integer>() {