Navigation problem

20 views
Skip to first unread message

TubaMan

unread,
Jun 24, 2011, 8:33:28 AM6/24/11
to Google Web Toolkit
Hi all,

I experience a navigation problem. This is the situation:

There is a TextBox, when there is input in the TextBox (KeyUpEvent) a
message is shown beneath the TextBox. The message is a Label that is
added to the parent-widget of the TextBox.
OnBlur the message has to disapear. This is done by
label.removefromParent().

However using the keyboard, leaving the TextBox by tab-key it is going
OK, but using the mouse, clicking a RadioButton below the TextBox, the
RadioButton got Focus, but is not selected!

I think the cause of this problem is that by removing the message, the
RadioButton scrolls up, and clicking the RadioButton failed because
the RadioButton is no longer at that position on the screen, but it
gets the focus because it is the last widget before the point that is
clicked.

Does anyone know a solution to my problem?

Thanx,
Jasper

Thomas Broyer

unread,
Jun 24, 2011, 8:43:28 AM6/24/11
to google-we...@googlegroups.com
Try to slightly defer the removal of your label, using Scheduler.scheduleDeferred.

TubaMan

unread,
Jun 28, 2011, 8:55:05 AM6/28/11
to Google Web Toolkit
Thanx for this solution! It works great!
Reply all
Reply to author
Forward
0 new messages