In a programming scenario, I needed to check if my GWT textbox was focused or not. I ended up adding a boolean and a pair of Focus & BlurHandler to manually keep the foc
To find which widget has focus, I don't know whether you have solution already. As a novice to GWT , I propose my solution to share:
Declare private field in the object, like 'focusedWidget'
Create focus handler for the widget, here's class TextBox. In OnFocus block, just assign the widget to 'focusedWidget'. You can add this kind of event to every widget that can be focused. ![step 2][2]
I test it in JUnit, it works!
see image of snippet here
Hope that help.