Thank you for your suggestions. I tried the solution suggested by
I have a confirmation window to be first displayed on tab selection,
and only on click of "No" button in the confirmation window the tab
selection should be cancelled.
Currently both BeforeSelectionEvent and SelectionEvent are invoked
since I can perform event cancel() on "No" button.
On Apr 27, 6:02 pm, Jens <jens.nehlme...@gmail.com> wrote:
> Tab(Layout)Panel's SelectionEvent is a GwtEvent and not a DomEvent, so its
> only a logical event fired by GWT and not a native event fired by the
> browser. Thats why you don't have a stopPropagation() / preventDefault()
> But TabPanel and TabLayoutPanel have an addBeforeSelectionHandler() and the
> BeforeSelectionEvent contains a cancel() method which should cancel the
> upcoming selection. This should help you to solve your problem.
> -- J.
> Am Freitag, 27. April 2012 13:45:19 UTC+2 schrieb ALB-PSP-DV1:
> > Our application has two tabs. On selecting the tabs we have to display
> > a confirmation window(dialog box). Depending on whether user clicks
> > "Yes" or "No" button in the confirmation window, the tab selection
> > event should proceed or stop.
> > I know we have event.stopPropagation() method for click event. However
> > there is no such method for selection event.
> > Is there any work around to stop the propagation of the selection
> > event. Any help is much appreciated.
> > 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 firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Post a Comment