I dont think you can change the order of the vents. But here may be what you
can do is in the Class B have a flag indicating the running of onChnage and
when onChnage is complete set this flag. Now in Class A onClick wait till
the Class B flag is set and then only start handling the onClick logic.

- Litty

On Fri, Feb 6, 2009 at 11:26 AM, Danny Schimke <[email protected]>wrote:

> It does not work...I am doing anything wrong.
>
> Can you *explain how to use this*? I try to describe again: I habe 2
> events, both in a own class. The onClick from save button in "class A" and
> the onChange from the textbox in "class B". If the onChange is fired the
> save is fired too (look at my first comment this thread). But I need the
> possibility to wait starting onClick until onChange is running.
>
> -Danny
>
> 2009/2/5 Damien Picard <[email protected]>
>
> Hi !
>>
>> You can control event propagation with low-level functions
>> (onBrowserEvent, Event) ; in your case, use the Event.cancelBubble function
>> :
>>
>>
>> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble(boolean)<http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble%28boolean%29>
>>
>> 2009/2/5 Danny Schimke <[email protected]>
>>
>> Hi!
>>>
>>> If I have following problem: I enter some text in a textbox. Now I click
>>> on a button to save data to a database. With leaving the edit ists onChange-
>>> event is called, but the onClick- event of the button is called too at same
>>> the time. Saving is faster than onChange. I tried to handle the onClick
>>> after other events have done their work by using a "DeferedCommand". But is
>>> doesn't work. Saving is allways faster than the onChange.
>>>
>>> Is there a way to control the handling-order of events?
>>>
>>> Thank you!
>>> -Danny
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to