gwt

39 views
Skip to first unread message

Amrutha Thomas

unread,
Dec 28, 2011, 5:58:44 AM12/28/11
to google-we...@googlegroups.com
Hiiiii,
 
I created a login page in gwt.Near my username and password field there are two icons .If I click on that icon virtual keyboard that I have created in gwt should pop up near username field and password field to enter username and password.How can I code it in gwt?Can anybody help me to solve this problem.

--
with best regards,

Amrutha

Ed

unread,
Dec 28, 2011, 6:28:46 AM12/28/11
to google-we...@googlegroups.com
See the last discussions in the forum as people are talking about this issue as we speak.

Amrutha Thomas

unread,
Dec 30, 2011, 4:31:27 AM12/30/11
to google-we...@googlegroups.com
Hiii,
 
 
 Can anyone tell me how to change focus from one textbox to another textbox using gwt?

Ed Bras

unread,
Dec 30, 2011, 4:49:35 AM12/30/11
to google-we...@googlegroups.com
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) {
}
}-*/;


--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Ian Bambury

unread,
Dec 30, 2011, 7:09:01 AM12/30/11
to google-we...@googlegroups.com
textbox.setFocus(true);

Amrutha Thomas

unread,
Dec 31, 2011, 12:50:29 AM12/31/11
to google-we...@googlegroups.com
but how can I change focus from one text box to another using this
with best regards,

Amrutha

Ian Bambury

unread,
Dec 31, 2011, 3:35:32 AM12/31/11
to google-we...@googlegroups.com
Can you be a bit more specific - what exactly are you trying to do?

setFocus will move the focus to whatever you choose.

Ian

Ed Bras

unread,
Dec 31, 2011, 6:20:35 AM12/31/11
to google-we...@googlegroups.com
Only one element can have focus, so setting focus on another will automatically blur the  other.
Reply all
Reply to author
Forward
0 new messages