View Full Version : how to listen a TextField get or lost focus?
how to listen a TextField get or lost focus?
i want to hide it, after it lost focus.
zaccret
7 Jul 2008, 10:31 PM
field.addListener(Events.Focus, new Listener<FieldEvent>(){
...
});Events.Blur for focus lose
cqiao
8 Jul 2008, 12:50 AM
Thank you!:)
MickeyMiner
19 Nov 2009, 7:55 AM
Hi,
I am using ExtGWT 2.0.
Why do Blur or Change evets not work on FieldSet or ContentPanel?
Hide and Show events are normally fired.
final FieldSet fieldSet = new FieldSet();
fieldSet.addListener(Events.Blur, new Listener<FieldSetEvent>() {
public void handleEvent(FieldSetEvent event) {
Info.display("fieldSet Blur was fired", "");
}
});Regards,
mm
estefan.civera
27 Jun 2011, 4:34 AM
Hi, I've the same problem
this is my code
TextField<String> wName = new TextField<String>();
....
wName.addListener(Events.Blur, new Listener<FieldSetEvent>() {
public void handleEvent(FieldSetEvent event) {
Info.display("fieldSet Blur was fired", "");
}
After compiling when I lose focus from wName widget, I don't see any message!! :(
what's wrong?
thank in advance!!
night-soul
13 Dec 2011, 6:17 AM
Try this.
User OnFocus, OnBlur event, to me this works ant the others not, in my case i have used on a button.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.