Only one element can have focus, so setting focus on another will automatically blur the other.
On Sat, Dec 31, 2011 at 9:35 AM, Ian Bambury <[email protected]> wrote: > Can you be a bit more specific - what exactly are you trying to do? > > setFocus will move the focus to whatever you choose. > > Ian > > On 31 December 2011 05:50, Amrutha Thomas <[email protected]>wrote: > >> but how can I change focus from one text box to another using this >> >> >> >> On Fri, Dec 30, 2011 at 4:09 AM, Ian Bambury <[email protected]>wrote: >> >>> textbox.setFocus(true); >>> >>> >>> >>> On 30 December 2011 09:49, Ed Bras <[email protected]> wrote: >>> >>>> For any widget element: >>>> /** >>>> * Sets the focus state of the element. >>>> * @param focused the new focus state >>>> */ >>>> public native void setFocus(Element elem, boolean focused) /*-{ >>>> try { >>>> if (focused) >>>> elem.focus(); >>>> else >>>> elem.blur(); >>>> } >>>> catch(err) { >>>> } >>>> }-*/; >>>> >>>> >>>> On Fri, Dec 30, 2011 at 10:31 AM, Amrutha Thomas < >>>> [email protected]> wrote: >>>> >>>>> Hiii, >>>>> >>>>> >>>>> Can anyone tell me how to change focus from one textbox to another >>>>> textbox using gwt? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> with best regards, >>>>> >>>>> Amrutha >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Google Web Toolkit" group. >>>>> To post to this group, send email to >>>>> [email protected]. >>>>> To unsubscribe from this group, send email to >>>>> [email protected]. >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/google-web-toolkit?hl=en. >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Google Web Toolkit" group. >>>> To post to this group, send email to >>>> [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group at >>>> http://groups.google.com/group/google-web-toolkit?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Web Toolkit" group. >>> To post to this group, send email to [email protected] >>> . >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/google-web-toolkit?hl=en. >>> >> >> >> >> -- >> with best regards, >> >> Amrutha >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
