Simple, the textfield accepts *everything*.. and at each textfield event (you typed something) you get the contents of the textfield, get rid of non-numbers yourself, and put the filtered text back.
Another solution is to make a special new gadget yourself which looks like an editfield, but only accepts numbers..
Another solution is to make a special new gadget yourself which looks like an editfield, but only accepts numbers..