View Full Version : How to get to know if TextField is focused
Hello,
Is there any way in GXT to find out which component of FormPanel is focused?
gishmo
24 Jan 2012, 3:53 AM
Somethings like that should work:
field.addListener(Events.Focus, new Listener<FieldEvent>(){ ...
Thanks for replying, but it is not exactly what I want. I don't want my textfield to listen for focus event. I have a FormPanel with several textfields. I also have a KeyNav for the FormPanel. I want to have one action if one of my textfields is focused and another in the other way(on enter press). So, I need to get focused component from FormPanel or check if textfield is focused by it's own method...
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.