// standard float range model
// note that float approximations could give errors,
// try to increment/decrement the initial value near a range end, to see problems ...
textinputFloatRange.setText(nf.format(new Float(testValue)));
textinputFloatRange.setValidator(new FloatRangeValidator(2.0f, 123456789f));
// test the listener by updating a label
textinputFloatRange.getTextInputListeners().add(new TextInputListener.Adapter() {
@Override
public void textValidChanged(TextInput textInput) {