The presence of the following scenario: blurring the text field (input) writes the text to my status box (under certain conditions), and pressing the button also writes the text to the status field.
Now, when you click the button, it will blur my text block if it is focused, and this will cause the status box to flicker, since blurHandler will record its result first, and then clickHandler. Since I want the clickHandler result to appear, my idea is to let blurHandler put an event at the end of the queue that checks if clickHandler did the result before.
In Swing, I would try SwingUtilities .invokeLater (Runnable). The equivalent in GWT is called Scheduler , but those pending or final commands always seem to run after the current event and until the next. While I use Scheduler.scheduleFixedDelay with a delay of 100 ms and hope that it appears after a mouse click in every browser. See a similar problem with the answer.
I think there must be a better solution for this. How to really add an event to the end of the queue or is it impossible due to HTML restrictions?
java events gwt
Zak_rhol
source share