Reputation: 135
I am developing a GWT application which uses the standart GWT TabLayoutPanel. Just realized that this component doesn't have an event to notify you when a tabs gets changed.
It has a getSelectedIndex() method, but I need an event so that other parts of the UI can react to changes.
My initial idea was to put a component that will always be bound and will fire an event when it gets loaded. It seams like a hack and I haven't figured out how yet.
Does anyone know what a good way to catch the tab change event would be?
Upvotes: 2
Views: 2280
Reputation: 179219
I've never worked with this widget, but isn't addSelectionHandler
what you need?
Upvotes: 7