Hello!
Somebody know how i can make a test in field, to know if the data is string
or integer? i'm tryng to use the setValidator(), but i don't know how i set
the parameters someone can help this rookie? =P
Thanks!!
--
Diego Venuzka
--
You received this message because you are subscribed t
Anyone?
2010/10/14, Diego Venuzka :
> Hello!
> Somebody know how i can make a test in field, to know if the data is string
> or integer? i'm tryng to use the setValidator(), but i don't know how i set
> the parameters someone can help this rookie? =P
>
> Thanks!!
>
> --
> Diego Venuzka
>
--
Which UI control and API are you referring to?
I cannot seem to find a setValidator() method in the
*com.google.gwt.user.client.ui.TextBox
*class heirarchy.
You might want to use the
Interface HasValueChangeHandlers
to add a handler that will be able to parse it via Integer.getInteger(
myControl.g
but how i do this ?
2010/10/17, A. Stevko :
> Which UI control and API are you referring to?
> I cannot seem to find a setValidator() method in the
> *com.google.gwt.user.client.ui.TextBox
> *class heirarchy.
>
> You might want to use the
> Interface HasValueChangeHandlers
> to add a handler that
Every control has a number of xxxHandlers interfaces that you can hang code
off of.
Try something like this using old style (pre-binder) code
// create a text box & add it to a Panel
myTextBox = new TextBox();
// add a handler to the text box control
myTextBox.addValueChangeHandler( new ValueChang
hmm, i understand that part, but how i put the values? inside the
OnValueChange?
Regards! :D
2010/10/19 A. Stevko
> Every control has a number of xxxHandlers interfaces that you can hang code
> off of.
> Try something like this using old style (pre-binder) code
>
> // create a text box & add it
Yes, your custom onValueChange() code will be called when the value of the
textbox changes.
Do with it what you will...
If that doesn't quite work for your purposes, there is a handler for most UI
events like
addDoubleClickHandler( new DoubleClickHandler() onDoubleClick()... )
They are listed