Re: How to set default textbox on form?
On Tue, Apr 24, 2012 at 10:15, Blake McBride <blake1024@gmail.com> wrote:
> Greetings,
>
> Is there a way to set which widget (usually a certain textbox) that should
> be the default widget with focus when a new form appears? Basically when
> the new form appears, if the user just starts typing, the input should
> appear in the widget that was specified as the one with the default focus.
>
> (I discovered that the order that the widgets are defined in the source file
> determines the tab order. This order can be changed in designer mode by
> changing the order in the widget list for the form via dragging.)
>
> Thanks.
>
> Blake McBride
Widgets that can be focused on all have setTabIndex method. Don't know
if this is what you want.
Worst case, yon can override the onAttach method of your form
container, and do textbox.setFocus(true)
HTH.
-- Joe
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home