Thursday, June 30, 2011

uibinder with textbox focus and lostfocus

hi all,

how do you guys implement focus and lostfocus handler on uibinder? I
can't seems to get it right..

How to have two handler on one UiField?

@UiHandler("textbox1")
public void onFocus(ClickEvent sender)
{
textbox1.setText("Focus");
}
public void onLostFocus(ClickEvent sender)
{
textbox1.setText("Gone");
}


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

No comments:

Post a Comment