Could you tell us where are you trying to paste? In textbox...what is your 
goal?

On Monday, 7 April 2014 21:19:31 UTC+5:30, Arun Kumar wrote:
>
> hi,
>
>      I want to discard the paste event.for this I caught the paste event. 
> But I'm failing to kill the event. If there is any chance to do it,pls give 
> me the solution.
> I tried event.cancelBubble(true); and  event.stopPropagation(); but these 
> two are not working for my requirement.
> My code:
>       class MyTextBox extends TextBox {
> public MyTextBox() {
>             super();
>             sinkEvents(Event.ONPASTE);
>         }
>         @Override
>         public void onBrowserEvent(Event event) {
>             super.onBrowserEvent(event);
>           
>             if(event.getTypeInt() == Event.ONPASTE){
>             // Window.alert(":: paste founded::");
>              //---- now i want to kill my current event.
>             }
>         }
> }
>
> pls show me the way to achieve my requirement.
> thanks in advance
> Arun Kumar
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to