Hi Raja,

  I think the way to achieve this is by making use of the keyboard listener
functionality. This might need some explicit code. First you define a normal
textbox, then when the user types something, set a keyboard listener, and
then a timer. Then you can temporarily store the that character of the
password in some string which keeps getting appended as and when the user
keeps typing. And with every keyboard key-in, call the keyboard listener,
then the timer say for 100 ms and then replace that with a * or #. That
should get your logic working.

  Just for your info, the only reason why this was introduced in cellphones
was because, in a cellphone, each button might correspond to multiple
characters. If you implement this algorithm in normal web-pages (which I
feel would not really be needed) then you might need to have a specific
logic to distinguish between a browser-access and cellphone-access and
enable this logic only for the browser version and have a normal password
textbox for the cellphone version. Just think over!!

Regards,
Abhiram

On Wed, Oct 19, 2011 at 3:58 PM, Raja Shekhar <[email protected]> wrote:

> Hi,
>
> I would like to make my PasswordTextBox shows typed character for a moment
> and then change to masking character.
> This behavior we generally see in Mobiles. Password Character will be shown
> for small amount of time.
> Is this possible in GWT ? if so, how can i do that? Can someone please
> provide me a piece of code to do that.
> Is there a way to change password masking char for passwordTextBox? For
> example, i would like to use '#' character as masking character for my
> PasswordTextBox
>
> --
> Thanks,
> Raja
>
>  --
> 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.

Reply via email to