Issam,
setMaxLength() method in TextBox class. (If you are using native GWT
TextBox, of course)
Em 20-05-2011 07:40, Issam escreveu:
Hi all,
Anyone has an idea about limiting the keyboard entries on a textBox
(creating a filter for example) or if it exists on GWT ?
Thanks in advance
Hi,
Is your question about the number of characters or do you want to have a
limited set of characters ?
Boris
2011/5/20 Issam boualem.is...@gmail.com
Hi all,
Anyone has an idea about limiting the keyboard entries on a textBox
(creating a filter for example) or if it exists on GWT ?
Thanks for your answers ,
My question is about the type of entries (I would like that TextBox
accepts just interger (int) )
On 20 mai, 14:14, Boris Lenzinger boris.lenzin...@gmail.com wrote:
Hi,
Is your question about the number of characters or do you want to have a
limited set of
I see 2 ways to do this :
- onKeyUp you check that the entry is an integer (or a float)
- you can check that the key entered is a number (warning key code are
differents from pad on the right and numbers above letters).
Boris
2011/5/20 Issam boualem.is...@gmail.com
Thanks for your answers
There is a handy IntegerBox (as well as DoubleBox and LongBox) that you can
use instead of a simple TextBox. It parses and accepts only integer values
inside a TextBox.
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/IntegerBox.html
In general if you want